Home > Mobile >  How to fill FrameLayout with multiple TextView in Android Studio?
How to fill FrameLayout with multiple TextView in Android Studio?

Time:09-04

I have FrameLayout and want to fill it with multiple TextView. However each time I add the TextView, it hides the previous one. I can unhide it with gravity, but gravity only limited to top, center, and bottom (here was the reference I used). Hence I can only have 3 TextView in my FrameLayout, but I want more than 3, maybe 10 or more. How can I add more TextView in my FrameLayout without hiding the previous one?

CodePudding user response:

why you dont using recycler view?

CodePudding user response:

why don't you just use a RelativeLayout, where you can set the margin and the Alignment?

  • Related