我第一次在 Android 上使用动画。我发现了这个事实,我真的很生气。我有一个以矩形为背景的按钮模板和一个使用图层列表居中的图像位图。好的,现在我想用动画替换位图图像。我创建了可绘制动画列表并更改了我的按钮代码:
<layer-list>
<item>
<shape android:shape="rectangle">
<gradient
android:startColor="#666666"
android:endColor="#666666"
android:angle="90"
android:centerY="10%"
/>
<corners android:radius="0dp" />
</shape>
</item>
<item
android:drawable="@drawable/arrowseq">
</item>
无法避免像位图那样非常烦人的自动缩放。你能帮我或解释一下为什么吗?
非常感谢!