Android EditText android:background="@null"
巴扎黑
巴扎黑 2017-04-17 13:03:31
0
12
1898

Android EditText android:background="@null" 在模拟器上背景为

可是在真机上就变成了这样:

这个是为什么啊?

巴扎黑
巴扎黑

reply all(12)
洪涛

I wrote a Shape, just set the solid to white

左手右手慢动作

This is related to the Android version and Rom... If you use the system's default style, different effects may appear on different machines.
Tried before: EditText, set the font to white. On Sony, the background of EditText is black, but on Xiaomi, the background is white, and the subtitles in EditText cannot be seen clearly.
Therefore, if you are making that kind of released product, it is best to customize each module to maintain the same effect on different phones, different versions, and different ROMs.

Peter_Zhu

It’s a problem with the Android version

小葫芦

Post your version number and have a look. The information will be more detailed. You can try debugging it on a real machine

PHPzhong

This is related to the version and application theme.

巴扎黑

Look at the theme configured in your Activity. It should be related to the theme.

伊谢尔伦

Please set the font color and try again. Thank you

Ty80

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

阿神

It has something to do with the mobile version. background="@null" will default to the theme background of the mobile version. It is best to set the desired background to ensure that the background is unified in all mobile phones

巴扎黑

This is related to the system theme. Different Android versions and different manufacturers' customized system displays may be different. The fundamental reason is that the themes are different.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template