Jasra
Jasra

Reputation: 373

How to make the following type of listview in which every row is different

alt text

Upvotes: 0

Views: 193

Answers (2)

Nick H
Nick H

Reputation: 11535

If you're going to use a ListView, you'll need to implement your own ListAdapter. The Adapter API supports using different views depending on the list item, so you'll just implement getViewItemType and getView to use a different view depending on which item it's asking about. How you do this is up to you.

However, if you actually want what you see in the screenshot which is a list of preferences, why not use PreferenceScreen?

Upvotes: 3

Related Questions