ListView dynamically add/delete a button

  • Replies:0
Nathan Gorecki
  • Forum posts: 2

Apr 28, 2016, 2:11:40 AM via Website

I am new to java development and might have bit off more than I could chew. I'm trying to create an inventory app that allows a user to hold a running inventory of what they have.

On activity 1 there is a listview and 2 buttons; an add button and a delete button. The add button opens up to activity 2 with data fields. Once those data fields are populated, the user taps the add button on activity 2. This button does 2 things: 1 causes a button to be added into the listview in activity 1 and 2 creates a data entry so when the button in the scroll view is tapped, the user can view the inventory items data. Each button added has the text of the name of the inventory item added.

The code needs to add a button to the listview while the app is out of development?

I am thinking that the data is stored in an sql database. Then called upon but that's further down the road.

I hope I am explaining this so you can understand.

thanks for the help in advance!

Reply