Add forms via a button

Asked

Viewed 29 times

1

I am developing a grocery list application, and in this application the user registers the products from the list, and then saves the same inserir a descrição da imagem aqui

The user enters the product name and quantity,and and the click on the add button, another identical form appears below, for him to colcoar more items in your list inserir a descrição da imagem aqui

I’ve thought about doing it with list view and Adapter, but still, I have no idea how to produce it. Anybody got any ideas? Thank you

  • The ideal is to make a Listview to be able to list these products. What you can do is add a fixed button at the bottom of the screen and create a Dialog to add these products. The moment you add, there you update your list.

  • Maybe I expressed myself badly, but what would actually be in lsit view, would not be the list of registered products, but the formulary, like: insert the product, enter the quantity, and then when I click to add it gives me another form of this, in case I want to register more products. In the iamge, Product, and qaunt, would be the fields of the formulary

  • Whatever it is, when it’s dynamic, it’s usually more interesting to use listview. However, if you don’t want to use listview, you will have to put a scrollview in your layout, because when you reach the maximum screen limit, you will still see the elements. Use my answer as the basis if you want to do it in a listview: http://answall.com/a/152212/35406

  • Man, thank you so much, that’s exactly what I needed. : D Vlw!!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.