自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 自定义View之仪表盘版进度条

第一步: 在res/values目录下新建attrs文件声明自定义view所需要的属性。 resources> declare-styleable name="MeterView"> attr name="arcColor" format="color"/> attr name="arcWidth" format="dimension"/>

2016-10-31 19:13:15 525

原创 Listview之万能适配器封装,结合上一篇博客ViewHolder封装类使用

package com.pcf.listview.bean;import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import

2016-10-31 18:54:09 163

原创 ListView之ViewHolder类封装

ViewHolder封装*package com.pcf.listview.bean;import android.content.Context; import android.graphics.Bitmap; import android.util.SparseArray; import android.view.LayoutInflater; import android.view.V

2016-10-31 18:51:31 215 1

原创 fragment 切换时的优化一:

package com.pcf.fragment.activity; import android.content.SharedPreferences; import android.sax.RootElement; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; imp

2016-10-20 11:03:13 214 1

原创 butterknife的配置,使用。

(1)ButterKnife是什么?          在开发过程中,我们总是会写大量的findViewById和点击事件,像初始view、          设置view监听这样简单而重复的操作让人觉得特别麻烦,当然不会偷懒的程序员不是好程序员,         自然也出现了相应的解决方案--依赖注入。而ButterKnife则是依赖注入中相对简单易懂的很不错的开源框架,      

2016-09-03 16:43:01 254

空空如也

空空如也

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

TA关注的人

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