Update contact list divider styling.

This commit is contained in:
Greyson Parrelli 2019-10-18 13:03:58 -04:00
parent c0aa9d7587
commit 7b5c1904cf
4 changed files with 30 additions and 21 deletions

View File

@ -5,8 +5,8 @@
android:id="@+id/camera_contact_header" android:id="@+id/camera_contact_header"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginStart="@dimen/camera_contacts_horizontal_margin" android:layout_marginStart="16dp"
android:layout_marginEnd="@dimen/camera_contacts_horizontal_margin" android:layout_marginEnd="16dp"
android:layout_marginTop="16dp" android:layout_marginTop="16dp"
android:layout_marginBottom="24dp" android:layout_marginBottom="24dp"
style="@style/Signal.Text.Preview" style="@style/Signal.Text.Preview"

View File

@ -1,19 +1,14 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <org.thoughtcrime.securesms.components.emoji.EmojiTextView
xmlns:tools="http://schemas.android.com/tools" xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:id="@+id/label"
android:layout_height="wrap_content" android:layout_width="match_parent"
android:background="?attr/contact_list_divider"> android:layout_height="wrap_content"
android:layout_marginStart="@dimen/camera_contacts_horizontal_margin"
<TextView android:id="@+id/label" android:layout_marginEnd="@dimen/camera_contacts_horizontal_margin"
android:layout_width="wrap_content" android:layout_marginTop="16dp"
android:layout_height="wrap_content" android:layout_marginBottom="24dp"
android:paddingStart="16dp" style="@style/Signal.Text.Preview"
android:paddingTop="10dp" android:fontFamily="sans-serif-medium"
android:paddingBottom="10dp" tools:text="@string/CameraContacts_recent_contacts"/>
android:textSize="14sp"
android:textColor="@color/signal_primary_dark"
tools:text="Recent chats"/>
</LinearLayout>

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<org.thoughtcrime.securesms.components.emoji.EmojiTextView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingStart="16dp"
android:paddingEnd="16dp"
android:paddingTop="16dp"
android:paddingBottom="24dp"
style="@style/Signal.Text.Preview"
android:fontFamily="sans-serif-medium"
tools:text="@string/CameraContacts_recent_contacts"/>

View File

@ -96,7 +96,7 @@ class SearchListAdapter extends RecyclerView.Adapter<SearchListAdapter.Search
@Override @Override
public HeaderViewHolder onCreateHeaderViewHolder(ViewGroup parent, int position) { public HeaderViewHolder onCreateHeaderViewHolder(ViewGroup parent, int position) {
return new HeaderViewHolder(LayoutInflater.from(parent.getContext()) return new HeaderViewHolder(LayoutInflater.from(parent.getContext())
.inflate(R.layout.contact_selection_list_divider, parent, false)); .inflate(R.layout.search_result_list_divider, parent, false));
} }
@Override @Override