Skip to content

kumaleap/MultipleStatusLayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

效果图

Releases

No releases published

Packages

No packages published

Languages