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.
I notice when I use android:layout_height=38sp instead of android:layout_height=wrap_content in edittext. i get text
Share
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?