I have preference menu in my app. I am using Android 1.6. I wanted to use a static save button at the bottom of the screen.
I know how to do it with Relative Layout using android:layout_alignParentBottom="true"
<Button
android:id="@id/preferencesSaveButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_gravity="center_horizontal"
android:layout_marginBottom="10dp"
android:layout_marginLeft="20dp"
android:layout_marginRight="20dp"
android:layout_marginTop="10dp"
android:padding="15dp"
android:text="Save"
android:textStyle="bold" />
Can we use preference inside Relative Layout or is there any other practical method to do it?
you can use preference activity in tabbed layout and that would be a practical method for your query. Tabbed Layout should be having a relative layout..
In one of the tabhost, you can use preference activity through a intent.. that looks cool.
I don’t think so you need a save button in preference.. it automatically saves the preference and shared across if you have preference activity..