2015年7月28日

Android Scroller简单用法

摘要: Android里Scroller类是为了实现View平滑滚动的一个Helper类。通常在自定义的View时使用,在View中定义一个私有成员mScroller = new Scroller(context)。设置mScroller滚动的位置时,并不会导致View的滚动,通常是用mScroller记... 阅读全文

posted @ 2015-07-28 18:02 2015xbx 阅读(2686) 评论(0) 推荐(1) 编辑

Android中的PopupWindow

摘要: Android的对话框有两种:PopupWindow和AlertDialog。它们的不同点在于:AlertDialog的位置固定,而PopupWindow的位置可以随意AlertDialog是非阻塞线程的,而PopupWindow是阻塞线程的PopupWindow的位置按照有无偏移分,可以分为偏移和... 阅读全文

posted @ 2015-07-28 17:40 2015xbx 阅读(156) 评论(0) 推荐(0) 编辑

Android ViewDragHelper拖拉控制的帮助类

摘要: import android.content.Context;import android.graphics.Point;import android.support.v4.widget.ViewDragHelper;import android.util.AttributeSet;import a... 阅读全文

posted @ 2015-07-28 16:14 2015xbx 阅读(258) 评论(0) 推荐(0) 编辑

导航