摘要:
在Android开发过程中,不同的项目之间总会复用到一些有用的代码,这里记录下来,方便以后使用。一、Android判断点击区域是否在指定的View之内 @Override public boolean onInterceptTouchEvent(MotionEvent ev) { Rect rect = new Rect(); View.getGlobalVisibleRect(rect); if (rect.contains((int)ev.getRawX(), (int)ev.getRawY())) { ... 阅读全文
posted @ 2013-04-12 17:42
wuminxss
阅读(183)
评论(0)
推荐(0)