mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
3121cd9ade
* simplify contact list this also disables "fast scrolling" for the contact list; the "fast scrolling" code is too much bound to the bubbles and a-z to be preserved without much effort. however, "fast scrolling" seems to be much less important with a list sorted by "last seen". there is also the rough idea to raise minimal-origin of contact list, this would make the list much smaller (<https://github.com/deltachat/deltachat-core-rust/pull/2411>), otoh, not sure if #2411 is a thing for list sorted by "last seen". also the other lists (chatlist, archive, blocked) may become quite huge as well and do never have "fast scrolling". in case it is really needed again, however, we should go for the implementation available in RecyclerView since some time: <https://stackoverflow.com/questions/45370246/how-to-use-fastscrollenabled-in-recyclerview> * less padding as the A-Z decorations do not longer need space * remove unused contact_selection_recyclerview_header
83 lines
3.6 KiB
XML
83 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<org.thoughtcrime.securesms.contacts.ContactSelectionListItem
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="60dp"
|
|
android:orientation="horizontal"
|
|
android:gravity="center_vertical"
|
|
android:focusable="true"
|
|
android:background="?attr/conversation_list_item_background"
|
|
android:paddingLeft="24dp"
|
|
android:paddingRight="24dp">
|
|
|
|
<org.thoughtcrime.securesms.components.AvatarView
|
|
android:id="@+id/avatar"
|
|
android:layout_width="40dp"
|
|
android:layout_height="40dp" />
|
|
|
|
<LinearLayout android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="1"
|
|
android:layout_marginLeft="16dp"
|
|
android:layout_marginStart="16dp"
|
|
android:paddingRight="16dp"
|
|
android:paddingEnd="16dp"
|
|
android:orientation="vertical">
|
|
|
|
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
|
|
android:id="@+id/name"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:checkMark="?android:attr/listChoiceIndicatorMultiple"
|
|
android:drawablePadding="5dp"
|
|
android:ellipsize="marquee"
|
|
android:singleLine="true"
|
|
android:fontFamily="sans-serif"
|
|
android:textSize="16sp"
|
|
tools:text="Frieeeeeeedrich Nieeeeeeeeeetzsche" />
|
|
<!-- Attention: Using android:maxLines="1", if the name is an emoji followed by a
|
|
long word and the chat is muted, then the long word is not shown at all
|
|
(instead of using `…`). That's why we use android:singleLine="true" -->
|
|
|
|
<LinearLayout android:id="@+id/number_container"
|
|
android:orientation="horizontal"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content">
|
|
|
|
<TextView android:id="@+id/number"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:textDirection="ltr"
|
|
android:singleLine="true"
|
|
android:ellipsize="marquee"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textSize="14sp"
|
|
android:fontFamily="sans-serif-light"
|
|
tools:text="+1 (555) 555-5555" />
|
|
|
|
<TextView android:id="@+id/label"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:paddingLeft="10dip"
|
|
android:paddingStart="10dip"
|
|
android:ellipsize="end"
|
|
android:singleLine="true"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:fontFamily="sans-serif-light"
|
|
tools:text="Mobile" />
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
<CheckBox android:id="@+id/check_box"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:focusable="false"
|
|
android:clickable="false" />
|
|
|
|
</org.thoughtcrime.securesms.contacts.ContactSelectionListItem>
|