简体   繁体   中英

Samsung S3 colors issue

We are experiencing a color change only in S3.

The color is well defined as Hex in the layout XML.

on all devices it is green, but on S3 it some times turns red

Edit due to the negative responses:

Just to be clear, the color was changing on S3 only sometimes, and in run time.

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.

dude, I think its not related with your coding or Hex value, check display settings for 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.

Jitesh Dalsaniya & Salman Khan, you can try and recreate what i have described.

Hope this post will help anyone that runs into this weird issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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