当前位置:网站首页>在线直播系统源码,使用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放大缩小动画效果,更多内容欢迎关注之后的文章
边栏推荐
- Talk about seven ways to realize asynchronous programming
- Détailler le bleu dans les tâches de traduction automatique
- How do I get the last part of a string- How to get the last part of a string?
- JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
- Mobx knowledge point collection case (quick start)
- Non empty verification of collection in SQL
- Torefs API and toref API
- Pass child component to parent component
- OOM(内存溢出)造成原因及解决方案
- FPGA course: application scenario of jesd204b (dry goods sharing)
猜你喜欢
Pass parent component to child component: props
$parent (get parent component) and $root (get root component)
四、高性能 Go 语言发行版优化与落地实践 青训营笔记
Make a bat file for cleaning system garbage
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
Stockage et pratique des données en langage C (haut niveau)
Apache AB stress test
Leetcode-226. Invert Binary Tree
URP - shaders and materials - light shader lit
抽絲剝繭C語言(高階)數據的儲存+練習
随机推荐
Docker compose start redis cluster
Talk about seven ways to realize asynchronous programming
1090: integer power (multi instance test)
Freeswitch dials extension number source code tracking
聊聊异步编程的 7 种实现方式
虚拟机的作用
Apache AB stress test
记一个并发规则验证实现
Procedure in PostgreSQL supports transaction syntax (instance & Analysis)
Build personal website based on flask
Paranoid unqualified company
About binary cannot express decimals accurately
Initial experience of teambiion network disk (Alibaba cloud network disk)
The metauniverse of the platofarm farm continues to expand, with Dao governance as the core
Dynamics CRM server deployment - restore database prompt: the database is in use
Lm11 reconstruction of K-line and construction of timing trading strategy
The currently released SKU (sales specification) information contains words that are suspected to have nothing to do with baby
Abnova membrane protein lipoprotein technology and category display
PostgreSQL source code (60) transaction system summary
At the age of 20, I got the ByteDance offer on four sides, and I still can't believe it