In Android, how to create EditText of fixed width?

后端 未结 10 461
醉酒成梦
醉酒成梦 2020-12-04 17:52

I would like to create an EditText which accepts only numbers, has a maximum of 4 numbers, and is never narrower than it would be if filled with 4 numbers (does not shrink

10条回答
  •  情歌与酒
    2020-12-04 18:26

    You can set alignment other wise when you put character more than wditText width than It's increase width or EditText width. Please set toLeftOf and toRightOf of the above view to manage this things. Only one solution

提交回复
热议问题