【问题标题】:Screen backgroud image looks different from iPhone Screen in android less then 2.3?屏幕背景图像在 2.3 以下的 Android 中看起来与 iPhone 屏幕不同?
【发布时间】: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 手机上的屏幕具有不同的颜色配置文件,所以我认为相同的图像看起来不同。

标签: android android-layout


【解决方案1】:

经过更多研究最终我找到了解决方案..

How to add a PNG image as background in Android with no alteration (banding)?

它的工作比以前更好......

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-09
    • 2020-02-23
    相关资源
    最近更新 更多