Set background color on pinned directory headers.
This fixes some UI jank which happened when scrolling, for the old
school pinned directory headers, such as in the dialer search view.
Change-Id: Ifdb983af16c32ee29cfeca2ce06f2b293ffbc3e2
diff --git a/res-common/layout/directory_header.xml b/res-common/layout/directory_header.xml
index 4ab2411..6c7fc84 100644
--- a/res-common/layout/directory_header.xml
+++ b/res-common/layout/directory_header.xml
@@ -19,6 +19,7 @@
xmlns:android="http://schemas.android.com/apk/res/android"
style="@style/DirectoryHeader"
android:id="@+id/directory_header"
+ android:background="?attr/list_item_background_color"
android:paddingLeft="?attr/list_item_padding_left"
android:paddingRight="?attr/list_item_padding_right"
android:paddingStart="?attr/list_item_padding_left"
@@ -26,16 +27,14 @@
android:minHeight="@dimen/list_section_divider_min_height"
android:layout_marginTop="@dimen/list_header_extra_top_padding"
android:layout_width="match_parent"
- android:layout_height="wrap_content"
- >
+ android:layout_height="wrap_content" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:paddingTop="4dp"
android:paddingBottom="8dp"
- android:background="@drawable/list_section_divider_holo_custom"
- >
+ android:background="@drawable/list_section_divider_holo_custom" >
<TextView
android:id="@+id/label"
android:layout_width="wrap_content"