I notice when I use android:layout_height="38sp" instead of android:layout_height="wrap_content" in edittext. i get text box with white line in the middle .. any explanation? I need to re size the edittext.
Asked
Active
Viewed 499 times
1
-
Same problem for me, no matter which dimensional unit I use – Display name Jan 12 '12 at 10:39
2 Answers
2
Change the backgroundcolor of the edittext
android:background="#F0F0F0"
the edittext is a bit bigger after that, but you can resize it!

pinoxxio
- 38
- 7
1
You should be using dp or dip for height, not sp - that's for text size.
See this question for an explanation on dimensional units - What is the difference between "px", "dp", "dip" and "sp" on Android?