PullToRefreshListView类图
2018-04-09 18:32:27 0 举报
pulltoRefresh类图
作者其他创作
大纲/内容
控制下拉刷新和上拉加载的显示和动画运动
PullToRefreshWebView
+ attribute1:type = defaultValue+ attribute2:type- attribute3:type
IPullToRefresh
LoadingLayout
ProgressBar mHeaderProgress;ImageView mHeaderImage;+TextView mHeaderText;
+ void reset()void onPullImpl(float var1);void pullToRefreshImpl();void refreshingImpl();void releaseToRefreshImpl();void resetImpl();
FlipLoadingLayout
构建一个旋转加载动画
ILoadingLayout
void setLastUpdatedLabel(CharSequence var1); void setLoadingDrawable(Drawable var1); void setPullLabel(CharSequence var1); void setRefreshingLabel(CharSequence var1); void setReleaseLabel(CharSequence var1); void setTextTypeface(Typeface var1);
ProgressBar
系统类
FrameLayout
系统类,帧布局
InternalListViewSDK9
PullToRefreshListView
具体开始调用子类
ListView createRefreshableView()LoadingLayoutProxy createLoadingLayoutProxy
PullToRefreshBase
T mRefreshableView ; listView对象
PullToRefreshGridView
gridView子类
加载中控件,该类中只是进行了页面加载初始化等简单操作,具体业务都是调用抽象方法OnPullImpl()...
OverscrollHelper
根据滚动的位置更新刷新状态调用setState()
PullToRefreshScrollView
PullToRefreshHorizontalScrollView
PullToRefreshAdapterViewBase
-OnScrollListener mOnScrollListener;//该类中的onScroll()会回到listener中的方法
-convertEmptyViewLayoutParams()+boolean getShowIndicator()+void onScroll()//父类中的ListView对象回调该方法+void onScrollStateChanged()//父类中的ListView对象回调该方法+void setAdapter(ListAdapter adapter)给父类中的listView对象设置adapter+void setEmptyView()+void onPullToRefresh()执行下拉动画和加载动画+void onRefreshing()滚动到指定位置,然后调用刷新完成回调+void onReleaseToRefresh()执行释放刷新动画
PullToRefreshExpandableListView
listview扩展类添加了空视图
帧动画loading实现了父类的开始和停止动画方法,并填充了动画类型
适配器类,给AbsListView子类使用
FrameAnimationLoadingLayout
- AnimationDrawable animationDrawable;
pullToRefreshImpl()void resetImpl()
OnScrollListener
滚动接口
LinearLayout
系统类线性布局
子类继承了该类,可以包含listView、gridView、scrollView、等子视图,给这些子视图添加刷新状态
InternalListView
-boolean mAddedLvFooter = false
+ void setEmptyView(View emptyView)
0 条评论
下一页