当前位置:网站首页>在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
2022-07-07 03:49:00 【云豹网络科技】
在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果
ValueAnimator valueAnimator = ObjectAnimator.ofFloat(1f, 0.8f);
valueAnimator.addUpdateListener(valueAnimator1 -> {
valueAnimator1.setDuration(300);
valueAnimator1.setRepeatCount(INFINITE);
valueAnimator.setRepeatMode(ValueAnimator.REVERSE);
if (valueAnimator1.getAnimatedValue() instanceof Float && constraintLayout != null) {
constraintLayout.setScaleX((Float) valueAnimator1.getAnimatedValue());
constraintLayout.setScaleY((Float) valueAnimator1.getAnimatedValue());
}
});
valueAnimator.start();
以上就是 在线直播系统源码,使用ValueAnimator实现view放大缩小动画效果,更多内容欢迎关注之后的文章
边栏推荐
- PostgreSQL source code (60) transaction system summary
- C language (high-level) data storage + Practice
- Bi she - college student part-time platform system based on SSM
- Implementing data dictionary with JSP custom tag
- Hidden Markov model (HMM) learning notes
- Leetcode-226. Invert Binary Tree
- Torefs API and toref API
- English translation is too difficult? I wrote two translation scripts with crawler in a rage
- URP - shaders and materials - light shader lit
- [cloud native] how to give full play to memory advantage of memory database
猜你喜欢

Flexible layout (I)

计算机服务中缺失MySQL服务

How can a 35 year old programmer build a technological moat?

"Xiaodeng in operation and maintenance" meets the compliance requirements of gdpr

Stockage et pratique des données en langage C (haut niveau)

Convolutional neural network -- understanding of pooling

普通测试年薪15w,测试开发年薪30w+,二者差距在哪?

Outlier detection technology of time series data

4、 High performance go language release optimization and landing practice youth training camp notes

抽丝剥茧C语言(高阶)指针的进阶
随机推荐
按键精灵脚本学习-关于天猫抢红包
Jesd204b clock network
Calculus key and difficult points record part integral + trigonometric function integral
Docker compose start redis cluster
Leetcode-226. Invert Binary Tree
Tencent's one-day life
Non empty verification of collection in SQL
Pass parent component to child component: props
Outlier detection technology of time series data
电商常规问题part1
一、Go知识查缺补漏+实战课程笔记 | 青训营笔记
Release notes of JMeter version 5.5
抽丝剥茧C语言(高阶)数据的储存+练习
Blue Bridge Cup Netizen age (violence)
4、 High performance go language release optimization and landing practice youth training camp notes
软件验收测试
Interviewer: what development models do you know?
计算机服务中缺失MySQL服务
Readonly read only
PostgreSQL source code (59) analysis of transaction ID allocation and overflow judgment methods