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();//清除动画
阅读 2999 · 发布于 2019-04-12
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
软考-系统架构设计师:局域网阅读 1184
-
MySQL 严格模式引起的问题阅读 844
-
SQLSTATE[HY000]: General error: 1205 Lock wait timeout exceeded; try restarting transaction阅读 1365
-
Windows10 访问网页提示找不到服务器 IP 地址阅读 9123
-
Docker 部署 Grafana阅读 1004
-
JavaScript 使用 MD5 加密支持中文阅读 2448
-
OpenResty 常用 HTTP 请求 API阅读 3689
-
Git 命令之暂存区阅读 1683
-
走进 Rust:函数阅读 1332
-
Docker Dockerfile 关键字阅读 376