Reputation: 35
I currently have a layout consisting of 1 image view and 2 text views. I'm trying to make it so that the user can input a picture and their own name of a restaurant and their own rating of a restaurant, so essentially they need to be able to add two text views and an image view, but the overall layout will remain consistent. Is there any way to use the tag programmatically with minor differences based off of the user input? Thanks!
Upvotes: 2
Views: 37
Reputation: 7106
If you are looking for a list of repeating views, you can check ListView. With it, you can achieve a layout such as
With this, you can define one layout that repeats several times inside your parent layout (ListView).
For a complete guide, please refer here.
Upvotes: 1