Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

qinweiforandroid/LoadingView

Repository files navigation

LoadingView

提供首次进入页面加载状态解决方案

效果图

image

how to use

你可以将你的主布局设置成帧布局或者相对布局 使得loadingview 覆盖到内容页面之上 xml 配置:

 <com.qw.loadingview.widget.LoadingView
 android:id="@id/mLoadingView"
 android:layout_width="match_parent"
 android:layout_height="match_parent" />

Activity:

LoadingView mLoadingView = (LoadingView) findViewById(R.id.mLoadingView);
//notifyDataChanged()切换各个view之前的状态
mLoadingView.notifyDataChanged(LoadingView.State.ing);

LoadingView.State加载状态

public enum State {
 ing, error, done, empty
}

样式

样式你可以根据你自己的业务进行定制

About

提供首次进入页面加载状态解决方案

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /