当前位置:网站首页>ObjectAnimator使用注意点
ObjectAnimator使用注意点
2022-07-28 11:18:00 【sdfdagdsfgsdg】
ObjectAnimator.ofInt(Object target, String propertyName, int… values);
target:传入的任意class对象propertyName:为操作对象中属性的名称,该名称需要注意点是PropertyValuesHolder中会根据我们这里传入的propertyName而生成对应的set方法,就是将我们的设置propertyName的首字母大写,前面加入set,所以我们在传入的target对象中定义的设置属性值变化的方法必须和对应的propertyName名称一致(如propertyName
= curX/CurX(首字母大小写不区分), 那么在target 中定义的方法名称必须为setCurX)
values:动画执行需要的移动数值,根据这些值,由PropertyValuesHolder,来执行target的移动动画。
边栏推荐
- 2022.07.07 summer training personal qualifying (II)
- Several reincarnation stories
- AlexNet—论文分析及复现
- Techniques for visualizing large time series.
- 【补题日记】[2022牛客暑期多校2]H-Take the Elevator
- Specific functions of some multi parameter functions
- [diary of supplementary questions] [2022 Niuke summer multi school 2] i-let fat tension
- [diary of supplementary questions] [2022 Niuke summer multi school 2] D-Link with game glitch
- 什么是WordPress
- [collection] Advanced Mathematics: Capriccio of stars
猜你喜欢

In order to ensure the normal operation of fire-fighting equipment in large buildings, the power supply monitoring system of fire-fighting equipment plays a key role

Autumn recruit offer harvesters, and take the offers of major manufacturers at will

直接插入排序与希尔排序

简单选择排序与堆排序

瑞吉外卖——Day01

Techniques for visualizing large time series.
![Opencv notes sorting [Hough transform]](/img/80/8f5b0d7e1c5adc39cb5404dcdb1b11.png)
Opencv notes sorting [Hough transform]

Application of mobile face stylization Technology

Deployment and use of Minio distributed object storage

14、用户web层服务(二)
随机推荐
2022.07.10 summer training personal qualifying (V)
Unity中使用UnityWebRequest进行网络和本地图片加载
Style conversion model style_ Transformer project instance pytorch implementation
R language uses LM function to build regression model with interactive items, and uses: sign (colon) to represent the interaction of variables (colon is pure multiplication, excluding the constituent
14. User web layer services (II)
多线程与高并发(三)—— 源码解析 AQS 原理
Embrace open source guidelines
Code simplification
OsCache缓存监控刷新工具
Anonymous implementation class object of interface
瑞吉外卖——Day01
移动端人脸风格化技术的应用
Specific functions of some multi parameter functions
How async await implements concurrency
DNS series (III): how to avoid DNS spoofing
Learn to use MySQL explain to execute the plan, and SQL performance tuning is no longer difficult
P5472 [noi2019] douzhudi (expectation, Mathematics)
SkiaSharp 之 WPF 自绘 拖曳小球(案例版)
The reflect mechanism obtains the attribute and method information of class
STL の 概念及其应用