alvan
alvan

Reputation: 203

How to make a preference more fancy?

I have been tired apply a style or a layout to a preference, but it didn't work well. Could anyone help me with this?

This is an image which shows the result I want

I also find someone say it could be done in listview,But I wanna how to make those blank spaces between two block?

Please, help me with this , it has been puzzled me a long time.Thanks!

Upvotes: 1

Views: 602

Answers (2)

Kurtis Nusbaum
Kurtis Nusbaum

Reputation: 30825

You can group your preferences by using PreferenceCategories and PreferenceScreens. If you want a preference to have an icon associated with it, you can use the android:icon attribute on the preference. Are there any specific characteristics of the iPhone settings that you're trying to replicate. You're not going to get your preferences to look exactly like the iPhones setting page, but you can certainly mimic certain characteristics.

Upvotes: 0

Reno
Reno

Reputation: 33782

You can have a transparent divider between ListItems

android:dividerHeight="10 dip"

Upvotes: 1

Related Questions