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

后端 未结 7 652
独厮守ぢ
独厮守ぢ 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:46

    I think you can use layout:weight = 5 instead android:lines = 5 because when you port your app to smaller device - it does it nicely.. well, both attributes will accomplish your job..

提交回复
热议问题