8000 GitHub - qinweiforandroid/LoadingView: 提供首次进入页面加载状态解决方案
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

0