Please use code tags (even if it's an example)
One way is:
- create a texfile where you define all the views with a form name (here you can define the names, input types, length, positions, ..., too)
Example:
Form-Name View-Number View-Type ....
Articles 1 Label
Articles 2 Edittext
Articels 3 Button
- when the app starts, load the file
- for each form create a panel (1 panel = 1 form) and create the views dynamically
Another way is:
- Download all the Culumns of the database via HttpUtils/php (assuming you have 1 table for each object, like article). So you get the fields (= views) you need. Search Google how to select culumns from a table.
Pro:
- instead of the file in example 1 create an own table for your forms and download the definitions
At the end there is no perfect way. Play with it to see what is the best way for you.