Features

Support whether ToolBar
public Boolean enableToolbar () {
return to true;
}
. 1
2
. 3
supports custom ToolBar
public int onBindToolbarLayout (http://www.amjmh.com/v/BIBRGZ_558768/) {
return R.layout.common_toolbar;
}
. 1
2
. 3
supports data loading loading
public void showInitLoadView () {
showInitLoadView (to true);
}

void hideInitLoadView public () {
showInitLoadView (to false);
}
. 1
2
. 3
. 4
. 5
. 6
. 7
support transparent data loading loading
@Override
public void showTransLoadingView () {
showTransLoadingView (to true);
}

@Override
public void hideTransLoadingView () {
showTransLoadingView (to false);
}
. 1
2
. 3
. 4
. 5
. 6
. 7
. 8
. 9
supports data showed no
public void showNoDataView () {
showNoDataView (to true);
}

public void showNoDataView(int resid) {
showNoDataView(true, resid);
}

void hideNoDataView public () {
showNoDataView (to false);
}
. 1
2
. 3
. 4
. 5
. 6
. 7
. 8
. 9
10
. 11
supporting network network error display
public void hideNetWorkErrView () {
showNetWorkErrView (to false);
}

public void showNetWorkErrView() {
showNetWorkErrView(true);
}

. 1
2
. 3
. 4
. 5
. 6
. 7
. 8
supporting lazy loading Fragment
Private void lazyload () {
// here labeled double determination, and must ensure that the page is loaded onCreateView visible only load data
IF (isViewCreated && isViewVisable) {
initData ();
// data is loaded, the return flag, to prevent the repeated load
isViewCreated = to false;
isViewVisable = to false;
}
}
// not enabled by default lazy loading
public Boolean enableLazyData () {
return to false;
}

Guess you like

Origin www.cnblogs.com/liyanyan665/p/11369977.html