How to avoid overlap view in relative layout in android?

前端 未结 8 1705
Happy的楠姐
Happy的楠姐 2020-12-23 13:43


        
8条回答
  •  离开以前
    2020-12-23 14:15

    Use layout_toStartOf in the first item with second item +id under double quotes

    
    
    
        
    
        
    
    
    

    note this argument in textview

    android:layout_toStartOf="@+id/selectaccount"
    

    An XML is read from top to bottom

    so this is how the Layout is rendered in Android

    • android:layout_toStartOf="@id/item means that item is defined above this line
    • android:layout_toStartOf="@+id/item means that item will appear later somewhere below this line

提交回复
热议问题