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. Deploying Application into Device

Hi

Could you please pass me step-by-step procedure on how to deploy application
into Android Device (my Phone)?

I believe multiple options should be there like from Eclipse and from
Command Line (typically when we buy an app from Android store).

-- 
- Prakash.

-- 

2. Access Keystore device!

I need access all the certificates installed on the device. I found
the class "android.security.keystore" that obtain the gobal instance
from device. Unfortunately this class is only private. The public
class is "java.security.KeyStore" but this doesn't have way to access
to the global keystore.

I have seen this thread,
http://code.google.com/p/android/issues/detail?id=11231#c8

Is it possible to access keystore android? If it is possible, how?
Could anyone help me?

I have spent full days searched in google without obtain the answer.

Thanks very much!

-- 

3. [libgdx]texture animation flickers

4. Is possible to debug OpenGL ES 2.0 application on Emulator?

5. Mobile Application Development in Openwave Computing !

6. SIpdroid and Trixbox over LAN?

7. Bug report, why it need more permissions?