Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make android EditText smaller than default in height?

How to make android EditText smaller than default in height?

If I change the height, I can't see my text, but it has extra blank on bottom.

like image 922
Jacky Avatar asked Sep 01 '09 08:09

Jacky


1 Answers

EditText has a default padding set.

Try this,

<EditText 
    android:text="Any Text" 
    android:layout_width="fill_parent" 
    android:layout_height="16dp" 
    android:padding="2dp"
    android:background="#FFF"
    android:textSize="10dp"
/>
like image 153
bhatt4982 Avatar answered Oct 14 '22 21:10

bhatt4982