02 2016 档案

摘要:1、dashed-circular-progress https://github.com/glomadrian/dashed-circular-progress 刻度样式进度条 (小米clock) 技术点:PathEffect 阅读全文
posted @ 2016-02-27 17:45 chenyizh 编辑
摘要:1、事件调用顺序 以Button为例,以下分别为 onClick、onTouch 调用顺序:onTouch->onClick, 并且OnTouch调用两次(ACTION_DOWN、ACTION_UP) onTouch有返回值,true表示事件被onTouch消费掉了,不会继续向下传递; 2、控件的d 阅读全文
posted @ 2016-02-26 23:47 chenyizh 阅读(133) 评论(0) 推荐(0) 编辑
摘要:转载至:Android图片处理神器BitmapFun源码分析 Google Android 培训教程:DisplayingBitmaps 示例代码下载 http://pan.baidu.com/s/1skoyGJb 阅读全文
posted @ 2016-02-22 22:28 chenyizh 编辑
摘要:转载至: Android EventBus源码解析 带你深入理解EventBus EventBus1、注册: EventBus.getDefault().register(this); //this:Activity2、解除注册:EventBus.getDefault().unregister(th 阅读全文
posted @ 2016-02-22 21:27 chenyizh 编辑
摘要:转载至:鸿洋 http://blog.csdn.net/lmj623565791/article/details/38238749 1、属性 xmlns:ptr="http://schemas.android.com/apk/res-auto" ptr:ptrDrawable="@drawable/ 阅读全文
posted @ 2016-02-22 16:54 chenyizh 编辑
摘要://转载至 http://www.oschina.net/code/snippet_1398304_44573import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat 阅读全文
posted @ 2016-02-22 15:59 chenyizh 编辑
摘要:转载至:Android ListView从网络获取图片及文字显示 http://blog.csdn.net/wangjinyu501/article/details/8219317 1、内存缓存;软引用:如果一个对象只具有软引用,那么如果内存空间足够,垃圾回收器就不会回收它;如果内存空间不足了,就会 阅读全文
posted @ 2016-02-18 23:37 chenyizh 编辑
摘要:1、CSDN sunny-sky : http://blog.csdn.net/sunshine_bean/article/details/34824563 2、http://blog.csdn.net/arui319/article/details/46287707 3、CSDN 一叶飘舟 : h 阅读全文
posted @ 2016-02-17 21:32 chenyizh 编辑
摘要:import android.content.Context; import android.os.Handler; import android.view.View; import android.view.inputmethod.InputMethodManager; /** * Created 阅读全文
posted @ 2016-02-17 20:21 chenyizh 编辑
摘要:网站列表: 1、看源社区 : http://www.see-source.com/androidwidget/list.html?type=25 -- 各种Android开源组件分类整合; 2、泡在网上的日子:http://www.jcodecraeer.com/a/anzhuokaifa/andr 阅读全文
posted @ 2016-02-17 19:55 chenyizh 编辑
摘要:<?xml version="1.0" encoding="utf-8"?> <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:key="using_categories_in_r 阅读全文
posted @ 2016-02-11 21:18 chenyizh 编辑
摘要:参考转载至 慕课网 《Android电商活动中的刮刮卡 http://www.imooc.com/view/225》 1、获取canvas 的两种途径 1)onDraw(Canvas canvas); 该回调方法由系统传参 2)new Canvan(mBitmap); mBitmap = Bitma 阅读全文
posted @ 2016-02-06 13:14 chenyizh 编辑
摘要:1、canvas.rotate(degree) 适合在圆弧上画刻度时使用 2、paint.getTextWidths(String,start,end,widths) 计算该画笔下文字宽度 3、canvas.drawTextOnPath(String,path,hOffset,vOffset,pai 阅读全文
posted @ 2016-02-04 11:17 chenyizh 编辑
摘要:1、View postInvalidate() ; //force view to draw again. 2、Canvas 画布 Canvas 原点为 左上角; Canvas可以绘制的对象有:弧线(arcs)、填充颜色(argb和color)、 Bitmap、圆(circle和oval)、点(po 阅读全文
posted @ 2016-02-02 23:16 chenyizh 编辑

点击右上角即可分享
微信分享提示