continue
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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..