- 博客(3)
- 收藏
- 关注
原创 Handler消息机制的理解
先看一下消息机制的原理图: 相关类的说明:Message.java public int what;//标识(id) public int arg1;//保存int数据 public int arg2;//保存int数据 public Object obj;//保存任意数据 long when;//记录应该被处理的时间值 Handler...
2018-05-31 15:12:05 273
原创 Android自定义动画
创建自定义动画只需要实现它的applyTransformation的逻辑就可以了,不过通常情况下,还需要覆盖父类的initalize方法来实现一些初始化工作。 调用 代码:MyAnimation myAnimation = new MyAnimation();imageView.startAnimation(myAnimation);具体代码如下:package com....
2018-05-30 16:20:19 726
原创 ViewDragHelper 的简单使用(实现侧边栏滑动效果)
package com.android.myapplication;import android.content.Context;import android.support.v4.view.ViewCompat;import android.support.v4.widget.ViewDragHelper;import android.util.AttributeSet;import...
2018-05-30 11:26:32 558
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人