This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I've been working on my first app and I recently figured out how to get and use user data throughout my classes and activities. My question now is how to create some kind of a table to display and manipulate the data with.
Here's the main page of the app:
What I want to do is create a table underneath the line, and add an entry every time a user clicks the new saving category button. When they click that button, they are prompted for a name and a percent via an EditText and a SeekBar:
I want that stuff to get displayed here:
If it's hard to read sorry, it was done in paint. Basically I want a new row that will display the user-defined name on the left, and on the right it will display a percentage of the user defined paycheck. On the left I want the name of the category, and on the right it will say $0 until the user makes a new paycheck, after that it will display a percentage of that paycheck.
I have no idea how to start doing this, so any help is greatly appreciated.
List data is generally displayed in a <ListView>. Each row of a list can be set up to have its own layout (for example, to keep the two columns apart). If the row layout is named row.xml, you'd do something like