Click here to Skip to main content
15,890,690 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

What I have tried:

Tried using ListView but not entirely sure if its the best option when taking items into database.
Tried using GridView but wasnt able to make it dynamic
Posted
Updated 26-May-16 22:11pm
v2

1 solution

It is not easy to give a definitive answer to your question. The best option for you is to go and read some of the articles at http://www.codeproject.com/KB/android/#Android+Tutorial+Contest[^] (especially anything by Peter Leow), and try a few different options for yourself. That way you can see better which view control gives the look and feel that you want. There are also plenty of database samples to help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900