Reputation: 10471
Hey, I want to know how do I do to create a ListView in Android like this, not exactly, but with multiple text, and the text with different font size? Because the one I've created just worked for one text line for each line. Thanks.
Upvotes: 0
Views: 2905
Reputation: 64399
Your listview contains items, and the items are views. You can make that view e.g. a linearlayout with two textviews, one bigger then the other!
By the way, the example you've got there is a PreferenceScreen
, a special case. You probably don't need that info, but still, might be nice to know ;)
Upvotes: 5
Reputation: 1147
You need to create the view you want to use in XML and then inflate it in your list adapter. There's a brief but useful example here. Alternatively, check the API tutorial that came with the SDK. There should be several examples there that are easy to cut-and-paste into your project.
Upvotes: 3