settings - is this a ListView ?

by Marco Alexander Schmitz » Wed, 29 Sep 2010 19:19:32 GMT


Sponsored Links
 Hi,

as we all know in the emulator under settings we can configure out
device.

Are these settings views just ListViews?

The have headings and almost every row looks different - a normal
ListView makes all rows look the same ?!

 http://www.webinmotion.de/test/masc/device.png 

Best regards,
DaRolla

--



settings - is this a ListView ?

by Andrew Brampton » Wed, 29 Sep 2010 19:31:35 GMT


 This is a ListView, as it is quite easy to have every row different.
But in fact that Activity is most likely a PreferenceActivity[1] that
takes a lot of the hassle out of creating a ListView and simplifies
handling preferences.

Andrew

[1] 
 http://developer.android.com/reference/android/preference/PreferenceActivity.html 

On 29 September 2010 12:19, Marco Alexander Schmitz


>


Sponsored Links


settings - is this a ListView ?

by Mark Murphy » Wed, 29 Sep 2010 19:32:42 GMT


 On Wed, Sep 29, 2010 at 7:19 AM, Marco Alexander Schmitz



Yes.


You can have as many different types of rows as you want. You just
need an adapter that generates them. A simple adapter, like
ArrayAdapter or SimplerCursorAdapter, cannot do that. You need smarter
row-creation methods, plus override methods like getViewTypeCount()
and getItemViewType().

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com  |  http://github.com/commonsguy 
 http://commonsware.com/blog  |  http://twitter.com/commonsguy 

Android 2.2 Programming Books:  http://commonsware.com/books 

--



settings - is this a ListView ?

by Kostya Vasilyev » Wed, 29 Sep 2010 19:33:14 GMT


 It's a subclass of PreferenceActivity:

 http://developer.android.com/reference/android/preference/PreferenceActivity.html 

displaying preferences based on an XML file describing them:

 http://developer.android.com/resources/samples/ApiDemos/res/xml/preferences.html 

-- Kostya

29.09.2010 15:19, Marco Alexander Schmitz :
Hi, as we all know in the emulator under settings we can configure out device. Are these settings views just ListViews? The have headings and almost every row looks different - a normal ListView makes all rows look the same ?! http://www.webinmotion.de/test/masc/device.png Best regards, DaRolla
-- Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com --



settings - is this a ListView ?

by Marco Alexander Schmitz » Thu, 30 Sep 2010 15:18:45 GMT


 thanks a lot !!!

this was very helpful for many.

best regards,
Marco

2010/9/29 Kostya Vasilyev <kmans...@gmail.com>

>



Other Threads

1. Main and three binder threads are running after application close

This is the intended behavior.  See the docs starting here:

 http://www.***.com/ #procthread








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~

2. How to cancle a dialog when touch it?

i have my code
                        Dialog dlg=new Dialog(android01.this);
                        dlg.setContentView(R.layout.error);
                        dlg.show();
                        MotionEvent event = null;
                                if(dlg.onTouchEvent(event))
                                dlg.cancel();
but it dosnt work?
how to fix it?
Thank you.
Hence
--~--~---------~--~----~------------~-------~--~----~

3. Intent Selected_alternative

4. Docs: AsyncTask

5. AsyncTask posting mulitple parameters

6. Simplistic instructions from Spinner Selection to a Linear Image View?

7. how to run sdk sample activities?