Guest User

Untitled

a guest
Aug 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. How can I make an EditText only two characters wide - also on a REAL DEVICE?
  2. text.setFilters(new InputFilter[]{new InputFilter.LengthFilter(2)});
  3.  
  4. <EditText android:layout_width="5dp" andorid:layout_height="wrap_content"
  5. andorid:textSize="18dp"/>
Add Comment
Please, Sign In to add comment