Code example for ActionBar

Methods: newTab

0
 
        return actionBar;
    } 
 
    private ActionBar.Tab createTab(ActionBar actionBar, int tabTextId, ReadingStatus readingStatus, BookListFragment bookListFragment) {
        return actionBar.newTab()
                .setText(tabTextId)
                .setTag(readingStatus)
                .setTabListener(new UserBookTabListener(getActivity(), readingStatus.toString(), bookListFragment));
    } 
 
    public void setRequestParams(RequestParams requestParams) {
        this.requestParams = requestParams;
        wishBookListFragment.setRequestParams(requestParams);
        readingBookListFragment.setRequestParams(requestParams);
        readBookListFragment.setRequestParams(requestParams);
    } 
 
}