Android: Bottom Button Bar in PrefernceActivity?

妖精的绣舞 提交于 2020-01-13 18:14:07

问题


I'd like to create a PreferenceActivity with a button bar at the bottom, should look like the picture on the right. Anyone know how to do this? I came across this: Bottom button bar in android, but it doesn't work in a Preference screen


回答1:


You should be able to create your own layout for the PreferenceActivity that contains your button bar. A PreferenceActivity is just a ListActivity, so follow the rules for creating your own layouts for ListActivity.

Bear in mind that Android 3.0's fragments-based preference screens will not really support this button bar pattern well, and that those buttons will be pointless even in current versions of Android since the preference saving is done automatically.



来源:https://stackoverflow.com/questions/5467516/android-bottom-button-bar-in-prefernceactivity

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!