我如何为textview设置动画,我将drawable设置为背景。最好使用Animator进行动画处理。有人可以帮忙吗?
<TextView
android:id="@+id/bonus_text_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingStart="@dimen/margin_10"
android:paddingEnd="@dimen/margin_10"
android:background="@drawable/bonus_rectangle"
android:text="@string/screen_game_lucky_dice_label_bonus"
android:textSize="@dimen/text_size_14" />
我的可绘制的bonus_rectangle是
<?xml version="1.0" encoding="utf-8"?>
<solid android:color="#095B7C" />
<corners
android:bottomLeftRadius="5dp"
android:bottomRightRadius="5dp"
android:topLeftRadius="1dp"
android:topRightRadius="1dp" />