当前位置:网站首页>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
边栏推荐
- Convolutional neural network -- understanding of pooling
- UWB learning 1
- 《动手学深度学习》(四) -- 卷积神经网络 CNN
- 【性能压测】如何做好性能压测?
- Example of Pushlet using handle of Pushlet
- Determining the full type of a variable
- The annual salary of general test is 15W, and the annual salary of test and development is 30w+. What is the difference between the two?
- JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
- 【云原生】内存数据库如何发挥内存优势
- 2022-07-06: will the following go language codes be panic? A: Meeting; B: No. package main import “C“ func main() { var ch chan struct
猜你喜欢
抽絲剝繭C語言(高階)數據的儲存+練習
Deep learning Flower Book + machine learning watermelon book electronic version I found
Mutual conversion between InputStream, int, shot, long and byte arrays
外包干了四年,废了...
I failed in the postgraduate entrance examination and couldn't get into the big factory. I feel like it's over
After the interview, the interviewer roast in the circle of friends
How to * * labelimg
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
Detailed explanation of transform origin attribute
1141_ SiCp learning notes_ Functions abstracted as black boxes
随机推荐
Robot technology innovation and practice old version outline
[SUCTF 2019]Game
95后CV工程师晒出工资单,狠补了这个,真香...
Talk about seven ways to realize asynchronous programming
海思芯片(hi3516dv300)uboot镜像生成过程详解
【Unity】物体做圆周运动的几个思路
抽丝剥茧C语言(高阶)指针进阶练习
Interviewer: what development models do you know?
Make a bat file for cleaning system garbage
KBU1510-ASEMI电源专用15A整流桥KBU1510
Solution: could not find kf5 (missing: coreaddons dbusaddons doctools xmlgui)
微信小程序中使用wx.showToast()进行界面交互
Leetcode-226. Invert Binary Tree
Deep learning Flower Book + machine learning watermelon book electronic version I found
Fullgc problem analysis and solution summary
[semantic segmentation] - multi-scale attention
微信小程序中的路由跳转
UWB learning 1
Advanced practice of C language (high level) pointer
Flexible layout (II)