Setting up RelativeLayout in java code

后端 未结 3 1933
我寻月下人不归
我寻月下人不归 2021-01-12 05:35

I\'m having a hard time getting two text views to appear on top of each other in my java code. Here\'s the code I\'m experimenting with:

/** Called when the          


        
3条回答
  •  耶瑟儿~
    2021-01-12 06:07

    you can use xml layout for this :

    in relative layout u set the first textview and assign it some id fot the next text view we can assign parameter android:layout_below="id of above text view" in this way we get 2nd text view below 1st text view

提交回复
热议问题