简体   繁体   English

三星S3颜色问题

[英]Samsung S3 colors issue

We are experiencing a color change only in S3. 我们只在S3中遇到颜色变化。

The color is well defined as Hex in the layout XML. 颜色在布局XML中被明确定义为Hex。

on all devices it is green, but on S3 it some times turns red 在所有设备上它是绿色的,但在S3上它有时会变成红色

Edit due to the negative responses: 由于否定回复而进行修改:

Just to be clear, the color was changing on S3 only sometimes, and in run time. 需要明确的是,有时候,在运行时,S3的颜色会发生变化。

apparently calling set background to a previusly set view caused this to other views in other activities that had the original color set for them as well 显然将设置背景设置为一个普遍设置的视图导致其他视图中的其他视图也为其设置了原始颜色

Try to set the color in a different way: 尝试以不同的方式设置颜色:

YourView.setBackgroundColor(Color.argb(255, 255, 255, 255));

And so not from the xml-files. 所以不是来自xml文件。

dude, I think its not related with your coding or Hex value, check display settings for S3. 老兄,我认为它与您的编码或十六进制值无关,请检查S3的显示设置。 Go to settings and then select display and then select screen mode and finally choose Natural option from it. 转到设置,然后选择显示,然后选择屏幕模式,最后从中选择自然选项。 Hope it works. 希望它有效。 You may try other variations from it. 您可以尝试其他变体。

Apparently On S3 (at least) if you set in the layout a views background, and then change it programmatically to a different color, the original color will show as the new color throughout your app. 显然在S3(至少)如果您在布局中设置了视图背景,然后以编程方式将其更改为其他颜色,原始颜色将在整个应用程序中显示为新颜色。

Jitesh Dalsaniya & Salman Khan, you can try and recreate what i have described. Jitesh Dalsaniya和Salman Khan,你可以尝试重新创造我所描述的内容。

Hope this post will help anyone that runs into this weird issue. 希望这篇文章可以帮助任何遇到这个奇怪问题的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM