【发布时间】:2011-12-01 22:28:31
【问题描述】:
屏幕布局:父主背景图像和另一个作为表格图像的图像是子图像。表格图像为 3 行半透明图像。
当我在 iphone 中使用相同的两个图像时,看起来很完美。查看屏幕截图。
但是当我在低于 2.2 的 Android 中使用相同的两个图像时,表格和背景图像的透明图像看起来不同...请检查此链接...
http://screencast.com/t/T61v8Wf0MQ
这是我的布局屏幕代码...
<RelativeLayout android:id="@+id/relativeLayout1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/main" >
<RelativeLayout
android:id="@+id/relativeLayout4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:background="@drawable/table" >
</RelativeLayout>
</RelativeLayout>
我也使用了 imageview 或其他布局,但相同的效果在颜色外观上没有改善。
即使我使用相同的图像,我的问题是在屏幕 android 和 iphone 上看起来颜色不同。
谁能告诉我哪个参数集看起来和iphone屏幕颜色一样?
【问题讨论】:
-
可能是 android:gravity="center" 或 relativeLayout1 中的 "center_vertical"
-
iphone 和 android 手机上的屏幕具有不同的颜色配置文件,所以我认为相同的图像看起来不同。