自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 收藏
  • 关注

原创 FlowLayout简易版

public class FlowLayout extends ViewGroup { public FlowLayout(Context context) { super(context); } public FlowLayout(Context context, AttributeSet attrs) { super(context,...

2018-10-30 16:53:31 153

原创 自定义扇形图

自定义扇形图/** * 描述: * 绘制扇形图 * * @outhor zhengqian * @create 2018-10-09 16:37 */public class PieView extends View { private Paint mPaint;//画笔 private ArrayList<FanBean> fanBeanList;...

2018-10-24 17:00:31 417

原创 Android View绘制流程简析

//首先执行Activity启动流程调用ActivityThread的handleLaunchActivity方法private void handleLaunchActivity(ActivityClientRecord r, Intent customIntent, String reason) { //省略。。。。。。 Activ...

2018-03-15 17:49:58 185

原创 setContentView(layoutId)执行操作?

 我们自定义的Activity通常继承自系统的的Activity。自然setContentView()方法去系统的Activity查找:​public void setContentView(@LayoutRes int layoutResID) { getWindow().setContentView(layoutResID); initWindowDecorA...

2018-03-14 17:05:43 765

原创 字母索引列表(右侧字母触摸处理)

package com.ioc.cn.custom;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.support.annotation.Nullable;im...

2018-03-13 18:14:47 814

原创 自定义评分条RatingBar

package com.ioc.cn.custom;import android.content.Context;import android.content.res.TypedArray;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas...

2018-03-13 10:38:23 195

原创 圆形进度条

/** * Created by Cwm on 2018/3/6. * 圆形进度条 */public class Progress extends View { private int mExcircleColor = Color.RED; private int mFilletColor = Color.BLUE; private int mBreadth =...

2018-03-06 17:02:36 224

原创 字体变色

 这个是看了HongChengDarren的文章写的 点击打开链/** * Created by Cwm on 2018/3/6. * 继承TextView可以省去很多的复写方法 */public class DiscolorText extends android.support.v7.widget.AppCompatTextView { private int ...

2018-03-06 15:18:30 636

原创 自定义View之QQ运动

/** * Created by Cwm on 2018/3/1. * 仿QQ运动 * 思路分析: * 1、先画外圆弧 * 2、再画内圆弧 * 3、画内部字体颜色 */public class QQSports extends View { private int mExcircleColor = Color.RED; private int mFilletCo...

2018-03-02 13:09:05 129

原创 打造通用的AlertDialog

很简单直接上代码/** * Created by Cwm on 2018/1/25. * AlertDialog */public class AlertDialog extends Dialog { private AlertController mAlert; protected static AlertController.AlertParams P; ...

2018-02-28 17:45:40 190

原创 打造一套IOC注解框架

相信大家对findViewById()都不陌生,有人对这个很是苦恼,有时候往往要在一个类中写特别多的findViewById。好在后面有了xUtils,butterknife等框架让我们轻松很多。大家有没有看过这类第三方开源框架的源码。我们在这里就看一下xUtils的源码,看看是怎么实现的?这里给一下xUtils3  github地址点击打开链接先看一下使用方法public class MainA...

2018-02-28 17:36:51 179

原创 AsyncTask理解

AsyncTask用法以下就是AsyncTask使用方法AsyncTask源码解析asyncTask.execute()执行开始 初始化一个AsyncTask调用无参构造器实例化了一个WorkerRunnable对象 mWorker实际是一个Callable实例化了一个FutureTask对象 mfuture实际是一个Runnable,传入参数mWorker ,这两个后面会用到然后execute方...

2018-02-28 17:01:57 227

空空如也

空空如也

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

TA关注的人

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