How To Programmatically Add Multiple Views At The Bottom Of A Layout File Without Them Overlapping
I have successfully added a new view to the bottom of my layout using the resources on Stack Exchange and other. However, if I try to add a second view programmatically, the two vi
Solution 1:
Replace your RelativeLayout activity_main with LinearLayout which have orientation horizontal or vertical
Solution 2:
- Use lnearLayout instead of Relative layout, may be you need to use weightsum set orientation to vertical / horizontal
- put view right of other view and set it in xml .
Post a Comment for "How To Programmatically Add Multiple Views At The Bottom Of A Layout File Without Them Overlapping"