当用户单击图像时,我想要某种动画。我尝试将Blink
动画添加到texureView中,但它一直闪烁。下面是代码:
Animation animation;
mTextureView = (AutoFitTextureView)view.FindViewById(Resource.Id.texture);
animation = AnimationUtils.LoadAnimation(Activity,Resource.Animation.blink);
mTextureView.StartAnimation(animation);
<set xmlns:android="http://schemas.android.com/apk/res/android">
<alpha android:fromAlpha="0.0"
android:toAlpha="1.0"
android:interpolator="@android:anim/accelerate_interpolator"
android:duration="0"
android:repeatMode="reverse"
android:repeatCount="infinite"/>
</set>
我基本上希望获得默认的点击效果,该效果在您通过转到相机应用程序单击图像时发生。我有什么办法可以做到这一点?