【发布时间】:2012-01-15 02:23:29
【问题描述】:
我正在尝试在我的活动中放置背景,但图像质量不是预期的。
图片在蓝色条纹上方有一个简单的渐变,目前看起来像这样:
我的活动布局:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:background="@drawable/background_register"
android:drawingCacheQuality="high" >
</LinearLayout>
背景描述符(drawable/background_register):
<bitmap xmlns:android="http://schemas.android.com/apk/res/android"
android:antialias="true"
android:dither="true"
android:filter="true"
android:tileMode="repeat"
android:gravity="center"
android:src="@drawable/background_blue_565" />
目前我有一个描述 BitmapDrawable 的 XML 文件,它是活动的 LinearLayout 背景。但我已经尝试了到目前为止我发现的一切。启用抖动、抗锯齿、平铺、RGBA_8888 模式......你的名字。有没有人有不同的解决方案或想法我可以尝试?我将不胜感激。
顺便说一句,我目前正在 Galaxy S II 中开发应用程序。
【问题讨论】:
标签: android image background gradient