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
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