简体   繁体   中英

Colors Rendering Differently on Different Devices

Im setting the button state like

<selector xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:state_enabled="false" android:color="#FFF"></item>
    <item android:state_enabled="true" android:color="#000"></item>
    <item android:state_focused="true" android:state_pressed="false" android:color="#ffffff" />   
    <item android:color="#c7c7c7" />
</selector>

the problem is they are rendering differently on different devices like on Huwaei Ascend they are not that crisp but on Galaxy Device they are sharp and very crisp.

How can i make them look same on all devices.

Regards.

You have to live with it...
Each device has a different display .
Actually, Samsung's Super AMOLED displays are unbeatable (there's 1 led for every pixel, instead of a backlit LCD).
So, on devices with those displays the rendering will be brighter, while on LCDs it will be dimmer.

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