I need to show a large number of EditText controls on the screen, each of which will allow you to enter only 0-2 digits. The default size of the EditText is too wide for me to display enough EditText controls on the screen, but I could not figure out how to make them narrower. I tried the following attributes in
XML:
android:maxLength="2" android:layout_width="20dip" android:maxWidth="20px" android:ems="2" android:maxEms="2"
So the question is how to make EditText smaller than the default?
android android-layout android-xml
Heikki toivonen
source share