简体   繁体   English

Android-不同设备中的不同颜色

[英]Android - Different colors in different devices

I'm developing an application for Android, and the colors of drawables changes when I'm testing the app on Samsung Galaxy S2, and when I test the application on Samsung Galaxy Europe or on emulator, appears the real colors of the drawable. 我正在开发一个适用于Android的应用程序,当我在Samsung Galaxy S2上测试应用程序时,可绘制对象的颜色会发生变化,而当我在三星银河欧洲或仿真器上测试该应用程序时,可绘制对象的颜色就会改变。 For exemple, the gradient white and black, is different on Samsung S2. 例如,三星S2上的白色和黑色渐变是不同的。

Why this happening?? 为什么会这样? Can I do something on application to show the real colors on Samsung S2? 我可以在应用程序上做些什么来显示Samsung S2的真实色彩吗?

By default when we use transparent images in our app mostly the transparent part will show its parent. 默认情况下,当我们在应用中使用透明图像时,大多数透明部分将显示其父级。

For example if we use transparent images for menus in android. 例如,如果我们在Android菜单中使用透明图像。 then by default the theme of the device/background will be the parent view for this image. 那么默认情况下,设备/背景的主题将是该图像的父视图。 According to me better to change the image and try. 根据我的说法,最好更改图像并尝试。

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

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