Android add contact form dynamically

enter image description here

Hello,

I want to implement the form as in the image, dont know how they add fields dynamically. Is it a ListView? An expandable list? user can add and remove at runtime. I have checked Expandable List containing children. but we define child in an array, in the image they are dynamically added.

Any guide / link

thank

+3


source to share


1 answer


Custom ListView

Adapters

are often returned by collections such as List

, ArrayList

etc. These lists can contain your custom objects, where it Adapter

determines what to display based on the properties of the object. Lists can be managed / changed in typical models, for example add()

remove()

, etc.

Do a Google search for "Android custom list adapters" to find out more.



Below is an example of dynamically creating list lines with plus buttons to add more lines. Should start off well: Dynamically Add Items to ListView Android

You can always look at the source of the Android contacts app.

+1


source







All Articles