Code example for ViewPager

Methods: getAdapter, showFilter

0
    /** 
     * Show the supplied filter, adding it to the data source if it doesn't exist 
     * @param f 
     */ 
    public void showFilter(Filter f) { 
        TaskListFragmentPagerAdapter adapter = (TaskListFragmentPagerAdapter) getAdapter();
        showFilter(adapter.addOrLookup(f));
    } 
 
    /** 
     * Show the filter at the supplied index, with animation 
     * @param index 
     */ 
    public void showFilter(int index) {
        setCurrentItem(index, true);
    } 
 
    /** 
     * Returns the currently showing fragment 
     * @return