Code example for ActionBar.Tab

Methods: getPosition

0
        } 
    } 
 
    private void selectTab(Tab tab) {
        if (searchPager != null) {
            searchPager.setCurrentItem(tab.getPosition());
        } else { 
            setNavigationFragments(tab);
        } 
    } 
 
    private void setNavigationFragments(Tab tab) {
        String query = getQuery();
        if (tab == tabSubreddits) {
            refreshSubredditList(query);
        } else if (tab == tabPosts) {
            refreshThingList(null, query);
        } else if (tab == tabInSubreddit) {
            refreshThingList(subreddit, query);
        } 
Connect your IDE to all the code out there  Get Codota for Java