Daniel Dias
Daniel Dias

Reputation: 65

Android add and remove values from a spinner to a container

I'm developing an android aplication and I want to do something like this:

This should work like a form, and at the end, should return a list of items on the "container"

Example

Upvotes: 1

Views: 180

Answers (1)

Triode
Triode

Reputation: 11359

Use adapters Spinners | Android Developers

public void add (T object)

Added in API level 1

Adds the specified object at the end of the array. Parameters object The object to add at the end of the array.

public void remove (T object)

Added in API level 1

Removes the specified object from the array.
Parameters
object    The object to remove.

After performing add or remove call public void notifyDataSetChanged ()

Upvotes: 1

Related Questions