1

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.

user836026
  • 10,608
  • 15
  • 73
  • 129

2 Answers2

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?

Community
  • 1
  • 1
Martyn
  • 16,432
  • 24
  • 71
  • 104