Android: Vertical alignment for multi line EditText (Text area)

后端 未结 7 679
独厮守ぢ
独厮守ぢ 2020-12-04 06:54

I want to have 5 lines for the height of the text area. I am using the following code.



        
7条回答
  •  误落风尘
    2020-12-04 07:32

    This is similar to CommonsWare answer but with a minor tweak: android:gravity="top|start". Complete code example:

    
    

提交回复
热议问题