摘要:
1.通过JAVA代码添加,资源文件基本上不修改XML文件,只添加了一个ListView,就不贴XML文件的代码了。java代码: 1 public class MainActivity extends Activity { 2 3 @Override 4 protected voi... 阅读全文
posted @ 2015-07-16 16:41
熠然
阅读(1135)
评论(0)
推荐(0)
摘要:
布局添加动画使用步骤:1.获取到布局的id1 RelativeLayout ly=(RelativeLayout)findViewById(R.id.layout);2.设置动画样式1 ScaleAnimation sa = new ScaleAnimation(0, 1,0,1); //设置动画... 阅读全文
posted @ 2015-07-16 15:22
熠然
阅读(459)
评论(0)
推荐(0)
摘要:
自定义动画,需要新建一个类,继承Animation类。重写applyTransformation()方法和initialize()方法。applyTransformation(float interpolatedTime, Transformation t)方法中第一个参数:interpolated... 阅读全文
posted @ 2015-07-16 14:56
熠然
阅读(418)
评论(0)
推荐(0)
摘要:
动画侦听使用了AnimationListener接口,需要实现三个方法onAnimationStart()、onAnimationRepeat()、onAnimationEnd()代码:实现Button的动画侦听 1 findViewById(R.id.btnAnimation).s... 阅读全文
posted @ 2015-07-16 14:12
熠然
阅读(294)
评论(0)
推荐(0)
摘要:
Tween Animation-补间动画官网链接-http://developer.android.com/reference/android/view/animation/Animation.htmlAnimation,继承Object,实现Cloneable接口实现的直接子类:AlphaAnim... 阅读全文
posted @ 2015-07-16 10:12
熠然
阅读(412)
评论(0)
推荐(0)

浙公网安备 33010602011771号