How To Manage List With Dedicated Add And Remove Button?
I want to create a view like shown in Image with add and remove ImageButton. On click of any of these will start new activity and get contact detail and set/replace on the clicked
Solution 1:
- How can I make a UI so that I can grow this list how much I want(for as of now 3 is ok).
Use a ListView
with a CustomAdapter
. This will allow you to show as many rows as necessary. Within the getView()
method. Create a separate layout
that will be inflated in your Adapter
class that will look something like
<ImageView.../><TextView.../><ImageButton.../><ImageButton.../>
2.How to use add and remove button which will work for there row only.
Set the onClick
inside the getView()
method of the CustomAdapter
you are going to create
Post a Comment for "How To Manage List With Dedicated Add And Remove Button?"