Android 仿 iOS 删除时抖动效果

Android About 532 words

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();//清除动画
Views: 4,549 · Posted: 2019-04-12

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

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

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


Today On History
Browsing Refresh