Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.43 KB

README.md

File metadata and controls

42 lines (24 loc) · 1.43 KB

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页面

效果图