Android Linear Layout - How to Keep Element At Bottom Of View?

前端 未结 8 1558
悲哀的现实
悲哀的现实 2020-12-08 01:50

I have a TextView which I want to pin at the bottom of a landscape activity that is using LinearLayout with vertically arranged elements.

8条回答
  •  悲&欢浪女
    2020-12-08 02:06

    Step 1 : Create two view inside a linear layout

    Step 2 : First view must set to android:layout_weight="1"

    Step 3 : Second view will automatically putted downwards

    
    
        
    
        

提交回复
热议问题