• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Question about ListView?

hello_world

Lurker
I am learning android app development and I want to make a small app which will take data from 2 text fields (text fields are item and amount) and insert it into a list.

So this list should have two columns.

The user can enter any amount of items he wants so the list should be dynamic. He/she should also be able to edit the list while entering data into it.

Later on (as I keep learning), I want to take each item in this list, and enter it into a Database.

So my question is, is ListView the best widget which I should use or is there a better/easier one?

Hope my question is clear. Thanks in advance
 
@LightningBolt226 @LV426
Thanks for your replies.

Just to clarify, I want to make sure that while entering into the list, the user can click on an already entered List Item and edit it as well. This is possible, right?

Hope I was clear
 
In your adapter, you can make the views in each list item have an OnClickListener which you can use to listen for when the user clicks on the present List Items. From there, you can decide how you want them to edit the data such as making a dialog where they can input data or some other interface of your choosing.
 
In your adapter, you can make the views in each list item have an OnClickListener which you can use to listen for when the user clicks on the present List Items. From there, you can decide how you want them to edit the data such as making a dialog where they can input data or some other interface of your choosing.
ListView it is... I just wanted to make sure that everything I wanted to could be done using ListView. I didnt want to do the app halfway and then find out that something I wanted couldnt be done on it. Thanks for all your help :):)
 
Back
Top Bottom