Doesn't work EditText padding in the API 21

后端 未结 6 1054
你的背包
你的背包 2021-02-07 21:08

Doesn\'t work EditText padding in the API 21. I try to do it in empty project, only with single editText, but it still doesn\'t work.

Set padding programmatically works

6条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-07 21:34

    Not really the best way to work around the problem, but it works for me: you can set android:layout_height attribute to some fixed value and set android:gravity to center or center_vertical

    
    

提交回复
热议问题