Code example for ActionBarActivity

Methods: getSupportActionBar

0
 
 
    // FOR SETTING UP TABS IN ViewPagerTabsFragment 
    @Override 
    public ActionBar getActivityActionBar() {
        return getSupportActionBar(); 
    } 
 
    /* The click listner for ListView in the navigation drawer */ 
    private class DrawerItemClickListener implements ListView.OnItemClickListener {
        @Override 
        public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            selectItem(position);
        } 
    } 
 
    private void selectItem(int position) {
        // update the main content by replacing fragments 
        if (position == 0) {
            SimpleViewPagerFragment fragment = SimpleViewPagerFragment.newInstance(position);
            FragmentManager fragmentManager = getSupportFragmentManager();