How to make android EditText smaller than default in height?

前端 未结 5 1596
温柔的废话
温柔的废话 2020-12-16 12:47

How to make android EditText smaller than default in height?

If I change the height, I can\'t see my text, but it has extra blank on bottom.

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 13:04

    Is it an option to explicitly set the height?

    If yes, use something like

    
    

    You can decrease the font size, by using android:textSize in XML. You can also make your control scrollable.

    Edit: Just saw your screenshots, what is the layout in which you have put the EditText? It may be setting non-explicit layout rules for your control.

提交回复
热议问题