2

Two tiles SORT and REMINDER and having Sub Item as shown in image. I have tried this by using Listview but nothing made up like this.

enter image description here

4

2 回答 2

4

That is easy with Shared Preferences, take a look at this tutorial

In brief: for all Preference Category you have the possibility to add a title, in your case SORT and REMINDER.

于 2013-03-30T16:55:24.153 回答
1

You need to use PreferenceCategory to acheive this.

The Settings screen usually makes use of the SharedPreferences and you could use a PreferenceActivity to do it or you can handle all the interaction manually.

The preference category helps you to categorize all the preference settings into various groups, so as to make it easy for the user to understand which setting is for which functionality.

An excerpt from the documentation :

Used to group Preference objects and provide a disabled title above the group.

于 2013-03-30T16:57:12.417 回答