摘要: public class PageDragView extends ViewGroup{ private static final String TAG = PageDragView.class.getSimpleName(); /** * 用来追踪触摸事件(flinging事件和其他手势事件)的速率 * 用obtain()函数来获得类的实例, * 用addMovement(MotionEvent)函数将motion event加入到VelocityTracker类实例中, * 当你使用到速率时,使用computeCurrentVelocity... 阅读全文
posted @ 2012-06-04 17:02 暗殇 阅读(561) 评论(0) 推荐(0)
摘要: 很多情况下,我们需要自定义一些Dialog效果。首先继承系统的Dialog/** * @author gongchaobin * * 自定义Dialog样式 */public class SelfDialog extends Dialog implements android.view.View.OnClickListener{ private Context mContext; private Button mBtnCha; private Button mBtnUse; private ActivityManagerCommon managerCommon; ... 阅读全文
posted @ 2012-06-04 15:06 暗殇 阅读(296) 评论(0) 推荐(0)