[英]EditText background color samsung devices
Hey I am having an issue where on stock android my edittext views have the transparent background with the underline but on samsung devices it is a solid black background which looks really bad with black text. 嘿我有一个问题在库存android我的edittext视图有透明背景与下划线但在三星设备它是一个坚实的黑色背景,看起来非常糟糕的黑色文本。 I want to stop samsung from setting the background to black.
我想阻止三星将背景设置为黑色。
I have tried android:background="#00ffffff"
but this removes the background from stock android which i want to keep. 我试过
android:background="#00ffffff"
但这删除了我想保留的股票android的背景。
I'm quite late but incase someone still having same issue.Samsung set background as black when not defined any color as background. 我已经很晚了,但还是有人仍然有同样的问题。当没有定义任何颜色作为背景时,太阳将背景设置为黑色。
Solution : So you have to set background color as transparent. 解决方案 :因此您必须将背景颜色设置为透明。
<solid android:color="@color/transparent" > </solid>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.