Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - ICS Settings Adapter

Is there any kind of predefined adapter or custom utility that can help me quickly create a ListView of settings that feels like the native ICS one?

I've read this document extensively:

http://developer.android.com/design/patterns/settings.html#flow-structure

And understand it perfectly, but it seems like a bit of work to roll my own ListView adapter that handles big dividers, and thin ones, and different size headers, etc. Googling isn't yielding many programming oriented results, mostly just items for end users, like how to use the settings in ICS.

EDIT: Browsing the source seems to indicate that there is a large custom adapter embedded within the Settings App, in Settings.java ( the app entry point ).

Still though, I believe my question still stands, as I'd still like to either get an extracted version of that Adapter, or a tutorial for working with it or a custom one.

EDIT 2: Perhaps I should extend PreferenceActivity.

EDIT 3: Perhaps extending won't work, as I'm using ActionBarSherlock, so I have to extend SherlockActivity.

like image 825
Josh Avatar asked Jan 23 '26 13:01

Josh


1 Answers

You should read the documentation on ActionBarSherlock

like image 125
MetalWeirdo Avatar answered Jan 25 '26 03:01

MetalWeirdo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!