Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Settings screen layout style

Tags:

android

layout

I am creating a new settings screen for my app and want to keep the look and feel similar to that of the standard applications. I have seen many 3rd party apps also follow this style (Twidroid for example) and would like to know how best to go about creating this look?

Is there a "template" or Activity I can use or is it a case of constructing it from a table layout or similar?

Thanks.

like image 823
themaninthesuitcase Avatar asked Dec 14 '22 00:12

themaninthesuitcase


1 Answers

You can use preference XML and PreferenceActivity for settings to get the common look and feel. You can then access those settings via PreferenceManager.getDefaultSharedPreferences().

Here are three sample projects that demonstrate various aspects of the preference XML format.

like image 109
CommonsWare Avatar answered Jan 01 '23 04:01

CommonsWare