summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorFabrice Di Meglio <fdimeglio@google.com>2014-07-21 16:02:27 -0700
committerFabrice Di Meglio <fdimeglio@google.com>2014-07-21 16:16:23 -0700
commit86159283c98fd862723ce317f1621bcb16d451ce (patch)
treef8e5b6f30863484892e486cd42d6871eee1e034e /res/layout
parent20b32f25f0867bebfd138749f7ed45cf898942ef (diff)
downloadpackages_apps_Settings-86159283c98fd862723ce317f1621bcb16d451ce.zip
packages_apps_Settings-86159283c98fd862723ce317f1621bcb16d451ce.tar.gz
packages_apps_Settings-86159283c98fd862723ce317f1621bcb16d451ce.tar.bz2
Add the capability to set a pinned header to SettingsPreferenceFragment
- add a FrameLayout into the preference list fragment - add public void setPinnedHeaderView(View pinnedHeader) and clearPinnedHeaderView() APIs for adding and clearing the pinned header Change-Id: I50ba5dd150167e0d49cc54bee1203f46db6d7a66
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/preference_list_fragment.xml9
1 files changed, 8 insertions, 1 deletions
diff --git a/res/layout/preference_list_fragment.xml b/res/layout/preference_list_fragment.xml
index 8391641..a44535f 100644
--- a/res/layout/preference_list_fragment.xml
+++ b/res/layout/preference_list_fragment.xml
@@ -20,10 +20,15 @@
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/container_material"
android:orientation="vertical"
- android:layout_height="match_parent"
android:layout_width="match_parent"
+ android:layout_height="match_parent"
android:background="@android:color/transparent">
+ <FrameLayout android:id="@+id/pinned_header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:visibility="gone" />
+
<ListView android:id="@android:id/list"
style="@style/PreferenceFragmentListSinglePane"
android:layout_width="match_parent"
@@ -59,6 +64,7 @@
android:layout_alignParentStart="true"
android:text="@*android:string/back_button_label"
/>
+
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
@@ -79,6 +85,7 @@
android:layout_margin="5dip"
android:text="@*android:string/next_button_label"
/>
+
</LinearLayout>
</RelativeLayout>