自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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 265

原创 Android自定义动画

创建自定义动画只需要实现它的applyTransformation的逻辑就可以了,不过通常情况下,还需要覆盖父类的initalize方法来实现一些初始化工作。 调用 代码:MyAnimation myAnimation = new MyAnimation();imageView.startAnimation(myAnimation);具体代码如下:package com....

2018-05-30 16:20:19 718

原创 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 545

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除