wulijie / MultipleStatusLayout

多状态布局-处理页面多种状态的切换

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultipleStatusLayout

MultipleStatusLayout —多状态布局-处理页面多种状态的切换

导入

compile 'com.warpdrive.multiplestatuslayout:library:{latestVersion}'

Download API License GitHub stars

使用

multipleStatusLayout =
                new MultipleStatusLayout.Builder(this)
                        .include(R.id.refreshLayout)
                        .setEmptyView(R.layout.empty)
                        .setLoadingView(R.layout.loading)
                        .setErrorView(R.layout.error)
                        .build();
//show
multipleStatusLayout.showEmpty();//显示空白页面
multipleStatusLayout.showContent();//显示正文
multipleStatusLayout.showError();//显示错误页面
multipleStatusLayout.showLoading();//显示loading页面

效果图

About

多状态布局-处理页面多种状态的切换

License:Apache License 2.0


Languages

Language:Java 100.0%