Reputation: 701
This is my first project in android and I want to display something like this in list view Any advice is appreciated
Upvotes: 0
Views: 387
Reputation: 4258
For achieving this layout you should use custom listview for that like it.
A row with one text view and four button mean five object in each row but show only two object one is textview and another is one button out or four button. If you want to display fourth button then invisible first there button and fourth button in visible state. If you want to display second button then first, third and fourth button invisible state only second button in visible state. Fallow this logic in each row. I hope you got you answer after using this logic.
Upvotes: 0
Reputation: 777
You can go through CustomListView example.it can be done easily. Please go through the Link below how to customize listview row android
Upvotes: 2