摘要: 自定义View属性过程总结 1、 首先创建一个继承自View或其它widget的类,例如:MyLayout.java public class MyLayout extends View{ private Paint mPaint; public MyLayout(Context cont... 阅读全文
posted @ 2011-09-28 19:45 你好and程序员 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 1. 当用户触摸屏幕的时候,会产生许多手势,例如down,up,scroll,filing等等,我们知道View类有个View.OnTouchListener内部接口,通过重写他的onTouch(View v, MotionEvent event)方法,我们可以处理一些touch事件,但是这... 阅读全文
posted @ 2011-09-28 19:41 你好and程序员 阅读(104) 评论(0) 推荐(0) 编辑