当前位置:网站首页>在线直播系统源码,使用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放大缩小动画效果,更多内容欢迎关注之后的文章
边栏推荐
- Simple example of ros2 planning system plansys2
- Why is the row of SQL_ The ranking returned by number is 1
- Advanced level of C language (high level) pointer
- 抽丝剥茧C语言(高阶)数据的储存+练习
- Model application of time series analysis - stock price prediction
- My ideal software tester development status
- Software acceptance test
- Docker compose start redis cluster
- Summary of customer value model (RFM) technology for data analysis
- How to * * labelimg
猜你喜欢

The metauniverse of the platofarm farm continues to expand, with Dao governance as the core

Leetcode-543. Diameter of Binary Tree

ROS2规划系统plansys2简单的例子

抽絲剝繭C語言(高階)指針的進階

Introduction to abnova's in vitro mRNA transcription workflow and capping method

Asynchronous components and suspend (in real development)

深度学习花书+机器学习西瓜书电子版我找到了

Fast quantitative, abbkine protein quantitative kit BCA method is coming!

Robot technology innovation and practice old version outline

Leetcode-206. Reverse Linked List
随机推荐
Apache AB stress test
js小练习----分时提醒问候、表单密码显示隐藏效果、文本框焦点事件、关闭广告
聊聊异步编程的 7 种实现方式
Make a bat file for cleaning system garbage
gatk4中的interval是什么??
JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
At the age of 20, I got the ByteDance offer on four sides, and I still can't believe it
Differences between H5 architecture and native architecture
Implementing data dictionary with JSP custom tag
点亮显示屏的几个重要步骤
深度学习花书+机器学习西瓜书电子版我找到了
Several important steps to light up the display
【leetcode】1020. Number of enclaves
js小练习
Outsourcing for four years, abandoned
ROS2规划系统plansys2简单的例子
Simple example of ros2 planning system plansys2
IP address
About some details of final, I have something to say - learn about final CSDN creation clock out from the memory model
[semantic segmentation] - multi-scale attention