Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6df27be0 authored by Makoto Onuki's avatar Makoto Onuki
Browse files

Make the directory header look sane

Vertically-align the directory name to the "DIRECTORY" label.

Bug 5199096

Change-Id: I89ab928dbbd1789c6a08f7bb3829508842c4e809
parent 69aa5899
Loading
Loading
Loading
Loading
+17 −16
Original line number Diff line number Diff line
@@ -23,26 +23,13 @@
    android:minHeight="?attr/list_item_header_height"
    android:paddingLeft="?attr/list_item_padding_left"
    android:paddingRight="?attr/list_item_padding_right">
    <TextView
        android:id="@+id/display_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@+id/label"
        android:layout_toLeftOf="@+id/count"
        android:layout_centerVertical="true"
        android:layout_marginLeft="8dip"
        android:layout_marginRight="8dip"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="?android:attr/textColorSecondary"
        android:singleLine="true"
        android:textStyle="bold"
        android:textAllCaps="true" />
    <TextView
        android:id="@+id/label"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentTop="true"
        android:layout_alignParentLeft="true"
        android:layout_alignBaseline="@id/display_name"
        android:layout_centerVertical="true"
        android:layout_marginLeft="8dip"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="?android:attr/textColorSecondary"
@@ -54,10 +41,24 @@
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_alignBaseline="@id/display_name"
        android:layout_alignBaseline="@id/label"
        android:singleLine="true"
        android:textSize="12sp"
        android:textColor="@color/contact_count_text_color" />
    <TextView
        android:id="@+id/display_name"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_toRightOf="@id/label"
        android:layout_toLeftOf="@id/count"
        android:layout_alignBaseline="@id/label"
        android:layout_marginLeft="8dip"
        android:layout_marginRight="8dip"
        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="?android:attr/textColorSecondary"
        android:singleLine="true"
        android:textStyle="bold"
        android:textAllCaps="true" />
    <View
        android:id="@+id/contact_filter_header_bottom_divider"
        style="@style/SectionDivider"