I have an array list containing few elements. What i want to do is to display the items on the screen along with a button for each item. The button is an install button that would install the selected app. What is the ideal way to do this?
Share
I don’t know about ideal but you can
1) Create a new layout representing your list item. It will, probably be a horizontal
LinearLayoutwith aTextViewand aButton2) Subclass your own, say,
MyAdapterfrom, say,ArrayAdapter3) Override
getView()of your Adapter class where you will have