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

前端 未结 8 1560
悲哀的现实
悲哀的现实 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:19

    You should put the parameter gravity to bottom not in the textview but in the Linear Layout. Like this:

    
        
    
    

提交回复
热议问题