当前位置:网站首页>Live online system source code, using valueanimator to achieve view zoom in and out animation effect
Live online system source code, using valueanimator to achieve view zoom in and out animation effect
2022-07-07 07:41:00 【Cloudleopard network technology】
Online live broadcast system source code , Use ValueAnimator Realization view Zoom in and out animation effect
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();
That's all Online live broadcast system source code , Use ValueAnimator Realization view Zoom in and out animation effect , More content welcome to follow the article
边栏推荐
- [2022 ACTF]web题目复现
- Redis data migration
- Example of Pushlet using handle of Pushlet
- 4、 High performance go language release optimization and landing practice youth training camp notes
- Jenkins远程构建项目超时的问题
- After 95, the CV engineer posted the payroll and made up this. It's really fragrant
- 95后CV工程师晒出工资单,狠补了这个,真香...
- Leetcode-206. Reverse Linked List
- UWB learning 1
- Solution: could not find kf5 (missing: coreaddons dbusaddons doctools xmlgui)
猜你喜欢
Kuboard can't send email and nail alarm problem is solved
Summary of customer value model (RFM) technology for data analysis
Detailed explanation of neo4j installation process
[2022 CISCN]初赛 web题目复现
Flexible layout (II)
Project practice five fitting straight lines to obtain the center line
IPv4 exercises
How to reduce inventory with high concurrency on the Internet
Model application of time series analysis - stock price prediction
测试周期被压缩?教你9个方法去应对
随机推荐
Example of Pushlet using handle of Pushlet
记一个并发规则验证实现
After 95, the CV engineer posted the payroll and made up this. It's really fragrant
一、Go知识查缺补漏+实战课程笔记 | 青训营笔记
Interviewer: what development models do you know?
Several important steps to light up the display
Is the test cycle compressed? Teach you 9 ways to deal with it
Tongda injection 0day
Mutual conversion between InputStream, int, shot, long and byte arrays
考研失败,卷不进大厂,感觉没戏了
Bi she - college student part-time platform system based on SSM
Summary of customer value model (RFM) technology for data analysis
【Liunx】进程控制和父子进程
Gslx680 touch screen driver source code analysis (gslx680. C)
Wx is used in wechat applet Showtoast() for interface interaction
BGP experiment (1)
我理想的软件测试人员发展状态
Leetcode sword finger offer brush questions - day 20
Implementing data dictionary with JSP custom tag
I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over