lundi 7 mars 2016

Android: adding dynamic edit text fields in list view from sqlite db

I am fairly new to Android and am in the process of creating a Weightlifting Tracking App.

A brief overview of the app: User can enter in a lift, the amount of sets, and the amount of reps they want to do. I have this information stored in an SQLite database.

My question refers to the activity where the user enters in the amount of weight lifted during each set. How do I create the same number of EditText fields as the user specified in the DB and put that into a list view?

It would look something like this:

Bench Press 3x6 __ __ __

Bicep Curl 4x10 __ __ __ __

Squat 5x5 __ __ __ __ __

Aucun commentaire:

Enregistrer un commentaire