Colors Rendering Differently on Different Devices

孤街醉人 提交于 2019-12-20 04:16:33

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/20727062/colors-rendering-differently-on-different-devices

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!