基础的一个动画
来源:互联网 发布:天猫美工职责 编辑:程序博客网 时间:2024/06/05 20:12
/*进度条移动的方法*/private void startProgress(final double progress1){ final int width=progress.getWidth(); final ViewGroup.LayoutParams lp = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT); lp.height=progress.getHeight(); ValueAnimator animator = ValueAnimator.ofInt(0, (int)progress1*width); animator.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() { @Override public void onAnimationUpdate(ValueAnimator animation) { int now= (int) animation.getAnimatedValue(); lp.width=now; progress.setLayoutParams(lp); } }); animator.setDuration(3000);animator.start();}
阅读全文
0 0
- 基础的一个动画
- 基础动画的使用
- 基础动画的使用
- 游戏中动画的基础
- java基础 --- 简单的动画
- iOS 基础动画的使用
- Android的基础开场动画
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- 一个圣诞动画的实现
- iphone一个loading的动画
- 制作一个简单的动画
- 一个有趣的时钟动画
- Uva.10815 Andy's First Dictionary
- sqlite入门基础(一):sqlite3_open,sqlite3_exec,slite3_close
- Unable to open debugger port
- JAVA开发之 37 使用数组输出古诗《春晓》
- Swagger搭配Springboot使用
- 基础的一个动画
- log4j错误统计
- 云锁和安全狗哪个好 Bypass阿里云盾、百度云加速、安全宝、安全狗、云锁、360主机卫士SQL注入防御-系统/上网/安全
- CentOS 安装 opencv, 解决 Python cv2 module 问题
- 泛型固定下边界 ? super E *泛型固定上边界 ? extends E
- 卷积神经网络
- Servlet接口
- 拷贝、赋值和销毁
- 算法导论:快速排序及其随机化版本