当前位置:网站首页>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
边栏推荐
- How can a 35 year old programmer build a technological moat?
- Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.10 tabbar component (I) how to open and use the default tabbar comp
- Role of virtual machine
- 身边35岁程序员如何建立起技术护城河?
- Advanced level of C language (high level) pointer
- 解决:Could NOT find KF5 (missing: CoreAddons DBusAddons DocTools XmlGui)
- JSON introduction and JS parsing JSON
- Fullgc problem analysis and solution summary
- 电商常规问题part1
- 一、Go知识查缺补漏+实战课程笔记 | 青训营笔记
猜你喜欢

Detailed explanation of transform origin attribute

L'externalisation a duré trois ans.

我理想的软件测试人员发展状态

buuctf misc USB

Outlier detection technology of time series data

UWB learning 1

1142_ SiCp learning notes_ Functions and processes created by functions_ Linear recursion and iteration

毕设-基于SSM大学生兼职平台系统

Tencent's one-day life

English translation is too difficult? I wrote two translation scripts with crawler in a rage
随机推荐
Detailed explanation of transform origin attribute
After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
Flutter riverpod is comprehensively and deeply analyzed. Why is it officially recommended?
Detailed explanation of uboot image generation process of Hisilicon chip (hi3516dv300)
Determining the full type of a variable
How to reduce inventory with high concurrency on the Internet
一、Go知识查缺补漏+实战课程笔记 | 青训营笔记
Outlier detection technology of time series data
抽丝剥茧C语言(高阶)指针进阶练习
Docker compose start redis cluster
JS get all date or time stamps between two time stamps
【Liunx】进程控制和父子进程
How do I get the last part of a string- How to get the last part of a string?
基于Flask搭建个人网站
Stockage et pratique des données en langage C (haut niveau)
考研失败,卷不进大厂,感觉没戏了
Project practice five fitting straight lines to obtain the center line
leetcode:105. 从前序与中序遍历序列构造二叉树
MIPS uclibc cross compile ffmpeg, support g711a encoding and decoding
URP - shaders and materials - light shader lit