L
L
lzy2020-05-14 17:18:07
Java
lzy, 2020-05-14 17:18:07

How to store data without knowing the number of rows?

Hello, I'm new to development and watching a course with Udemy ( https://www.udemy.com/course/android-kak-po-notam-a/). I learned how to save the usual EditText, Spinner, etc. data in SQLiteOpenHelper.

But there is a task, to implement the saving of tabular data, see the screen.
5ebd524d6e18f030134487.png
The user enters all the fields and if you want to add more, there may be 1 or 10 machines, as if through the Add button a new field appears and the data is filled in.
Is it even possible?
How to implement this feature?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-05-14
@firedragon

It may be worth reading the UI manuals, they say that the tabular display is good for viewing, and on mobile it should be compressed or converted into cards, respectively, you need to lead the new Activity to the add record button and add fields already there in the ribbon view, this is of course IMHO.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question