Java OpenResty Spring Spring Boot MySQL Redis MongoDB PostgreSQL Linux Android Nginx 面试 小程序 Arthas JVM AQS juc Kubernetes Docker 诊断工具


Android 仿 iOS 删除时抖动效果

Android 大约 532 字

res/anim 下新建 rotate.xml

<?xml version="1.0" encoding="UTF-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
        android:duration="100"
        android:fromDegrees="-2"
        android:pivotX="50%"
        android:pivotY="50%"
        android:repeatCount="infinite"
        android:repeatMode="reverse"
        android:toDegrees="2"/>

加载动画

Animation rotate = AnimationUtils.loadAnimation(recyclerView.getContext(), R.anim.rotate);
view.startAnimation(rotate);//开始动画
view.clearAnimation();//清除动画
阅读 4043 · 发布于 2019-04-12

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb

扫描下方二维码关注公众号和小程序↓↓↓

扫描二维码关注我
昵称:
随便看看 换一批