Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EditText dimensions change if I use color as a background?

EditText views shrink in size if I use this to change their color:

    android:background="@android:color/white"

Why is this happening? How can I make them white and maintain their size? I dont like the default grey look they have. Same question regarding spinners...

like image 857
Kaloyan Roussev Avatar asked Oct 22 '22 00:10

Kaloyan Roussev


1 Answers

1、You can set minHeight attribute in xml layout 2、you can set a white background image that has the same height with the system edittext's backgound image. 3、you can just set background as transparent color and a white background to it's parent view.

like image 93
thinear Avatar answered Oct 30 '22 21:10

thinear