Android_RelativeLayout - How to put two elements on the same line?

前端 未结 5 1951
遇见更好的自我
遇见更好的自我 2021-01-25 05:32

The question is: I have a TextView and an EditText, how can I place them on the same \"level\"?

http://postimage.org/image/o9l17a3zv/

As you can see, I want to p

5条回答
  •  春和景丽
    2021-01-25 06:01

    Use the android:layout_toRightOf or android:layout_toLeftOf attributes, exclusive to relative layouts

    
    
        
    
        
    
            
        
    
    
    

提交回复
热议问题