I am developing an application that is looking for a bunch of elements, and I was wondering if there is a way to place the Preferences template (similar to Shared Preferences) inside the SlidingDrawer, for example, so that I can filter the results, I don’t mind whether it really uses the Shared Preferences system or not ( and I don’t find her at all), although it will be a plus. So, as already mentioned:
Is there a way to insert a preferences layout inside another layout?
I am including the code just in case.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<ListView android:layout_height="fill_parent" android:id="@+id/lista_recetas"
android:layout_width="fill_parent" android:layout_alignParentTop="true"
android:paddingBottom="40dip"></ListView>
<SlidingDrawer android:layout_alignParentBottom="true"
android:id="@+id/slidingDrawer" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:handle="@+id/handle"
android:content="@+id/content">
<LinearLayout android:id="@+id/handle"
android:layout_width="fill_parent" android:layout_height="40dip"
android:background="#000000"></LinearLayout>
<LinearLayout android:id="@+id/content"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="#333333">
<ExpandableListView android:layout_width="fill_parent"
android:layout_height="fill_parent"></ExpandableListView>
</LinearLayout>
</SlidingDrawer>
</RelativeLayout>
Thanks in advance.
source
share