Which Android UI component allows entry of lists of strings in a form?
Example:
Activity “Recipe” allows users to post a recipe to a database server. The activity has the following 2 fields:
-
Text field: Recipe “title”
-
List of strings field: “ingredients”
Example of a submission:
title: Pizza
ingredients:
-
mozzarella
-
tomato sauce
-
pepperoni
I would like for the user to be able to enter “mozzarella”, to see “mozzarella” appear in the list of ingredients and to still be able to add ingredients to complete the recipe (e.g. add “tomato sauce”, add “pepperoni”, all as part of the form)
Note: the “Transcript” API sample demo looks “similar” to this… but upside down.
EditTextsupports multiple lines. Listen for changes usingTextWatcherand explode each line to yourSimpleAdapteror similar.