我使用以下绘制:是否可以对可绘制的渐变进行抖动?
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle"
>
<gradient
android:startColor="@color/content_background_gradient_start"
android:endColor="@color/content_background_gradient_end"
android:angle="270"
/>
</shape>
的问题是,我觉得非常的捆扎在华电国际设备(如Nexus One的和Droid),因为梯度从该屏幕的顶部到最底部进入。
根据http://idunnolol.com/android/drawables.html#shape_gradient,梯度没有“抖动”属性。我能做些什么来平滑渐变?
注意:将dither =“true”添加到形状似乎不起作用。
选定的答案没有帮助我,你的确做到了!拥有Android 2.2的Galaxy S。 – 2011-06-10 22:56:56