android - 单击图片后使用camera2 api闪烁动画
问题描述
当用户单击图像时,我希望有某种动画。我尝试向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>
我基本上想要一个默认的点击效果,当您通过相机应用程序点击图像时会出现这种效果。有什么办法可以做到这一点?
解决方案
推荐阅读
- sql - 基于一列模式的 SAS/SQL 连接匹配另一列
- api - googleapi:错误 400:错误请求,失败前提条件
- tensorflow - 挤压一层的输出
- ansible - 如何解决读取 id_rsa.pub 时“无法在查找中找到文件”的问题?
- python - 从熊猫数据框中删除包含重复数据的列?
- r - 在基于摇杆的 Docker 容器中使用 h2o.xgboost 中的 GPU 后端
- html - CSS下拉菜单正在等待单击该项目,然后悬停工作
- python - Python - 从需要此文本中提取文本
- java - Java 远程调试 (JPDA) 在 Tomcat 9 中对我不起作用
- pandas - 这段代码中 summary_col 的 info_dict 参数中的 lambda 函数是做什么的?