Android RelativeLayout below 2 views

前端 未结 3 585
孤城傲影
孤城傲影 2021-02-04 23:46

I have a RelativeLayout like this:



        
3条回答
  •  我在风中等你
    2021-02-05 00:02

    Since everything is interdependent in the RelativeLayout it is irrelevant what order you place it in, but it does matter if you are trying to access one view before its created. For example, using the android:layout_below attribute is not exactly what you wanted for the Button. If you set the other views android:layout_above the button it would make the views always above it.

    
    
        

提交回复
热议问题