Monday, May 20, 2013

Add and Remove view dynamically

This exercise demonstrate how to add and remove view dynamically at run-time. When user click on the Add button, new view will be added. When user click on Remove button, the corresponding view will be removed.

- It's asked from another one.- I think set it VISIBLE/GONE, and dynamic add/remove is differency. At least I can insert un-limited view at run-time according user action. If use VISIBLE/GONE, I have to know number of view while coding.- Actually, when I see the "another one" question, I also think about use VISIBLE/GONE in first instance:)

I modified some lines of code. I have one extra Submit button. On clicking Submit it has to Toast all EditText values of Inflated layout. But its toasting only the last item. public class MainActivity extends Activity {

Hello and sorry for my bad english. I'm try to put a AutocompleteTextView, an EditText and a button Add starting from your example in this and last post.Without fortune. How can i achieve that, and retrieve or cancel data too? a link to a tutorial or where i can find more about it is ok.thanks in advance