Example usage for android.support.v4.app FragmentActivity getSupportFragmentManager

List of usage examples for android.support.v4.app FragmentActivity getSupportFragmentManager

Introduction

In this page you can find the example usage for android.support.v4.app FragmentActivity getSupportFragmentManager.

Prototype

public FragmentManager getSupportFragmentManager() 

Source Link

Document

Return the FragmentManager for interacting with fragments associated with this activity.

Usage

From source file:co.uk.alt236.restclient4android.adapters.RequestTabsAdapter.java

public RequestTabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) {
    super(activity.getSupportFragmentManager());
    mContext = activity;/* w ww. j  a v  a 2 s  .  com*/
    mTabHost = tabHost;
    mViewPager = pager;
    mTabHost.setOnTabChangedListener(this);
    mViewPager.setAdapter(this);
    mViewPager.setOnPageChangeListener(this);
}

From source file:com.android.tabcarouseldemo.PagerAdapter.java

/**
 * Constructor of <code>PagerAdatper<code>
 * /*from www  .  jav  a2 s . co m*/
 * @param fragmentActivity The {@link FragmentActivity} of the
 *            {@link SherlockFragment}.
 */
public PagerAdapter(FragmentActivity fragmentActivity) {
    super(fragmentActivity.getSupportFragmentManager());
    mFragmentActivity = fragmentActivity;
}

From source file:com.BibleQuote.ui.adapters.TabsAdapter.java

public TabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) {
    super(activity.getSupportFragmentManager());
    mContext = activity;/*from   w  w w. j  av  a2  s  .c o  m*/
    mTabHost = tabHost;
    mViewPager = pager;
    mTabHost.setOnTabChangedListener(this);
    mViewPager.setAdapter(this);
    mViewPager.setOnPageChangeListener(this);
}

From source file:com.androidfactorem.visualcv.ui.adapter.FragmentTabAdapter.java

public FragmentTabAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) {
    super(activity.getSupportFragmentManager());
    mContext = activity;//from  ww w.  j a  v a2s  .  co m
    mTabHost = tabHost;
    mViewPager = pager;
    mTabHost.setOnTabChangedListener(this);
    mViewPager.setAdapter(this);
    mViewPager.setOnPageChangeListener(this);
}

From source file:com.BibleQuote.BibleQuoteAndroid.ui.adapters.TabsAdapter.java

public TabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) {
    super(activity.getSupportFragmentManager());
    context = activity;//  w w w . j a v  a  2s. c om
    mTabHost = tabHost;
    mViewPager = pager;
    mTabHost.setOnTabChangedListener(this);
    mViewPager.setAdapter(this);
    mViewPager.setOnPageChangeListener(this);
}

From source file:com.example.client.fragment.imported.FragmentTransitionDefaultFragment.java

private void showNextFragment() {
    FragmentActivity activity = getActivity();
    if (activity == null) {
        return;/*from   ww w  .j  av a 2  s  .c om*/
    }
    FragmentManager fm = activity.getSupportFragmentManager();
    FragmentTransaction ft = fm.beginTransaction();
    ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);
    ft.replace(R.id.fragment, new FragmentTransitionSecondFragment(),
            FragmentTransitionSecondFragment.FRAGMENT_TAG);
    ft.addToBackStack(null);
    ft.commit();
    fm.executePendingTransactions();
}

From source file:br.com.cybereagle.androidlibrary.ui.adapter.TabsAdapter.java

public TabsAdapter(FragmentActivity activity, TabHost tabHost, ViewPager pager) {
    super(activity.getSupportFragmentManager());
    this.context = activity;

    this.tabHost = tabHost;
    this.viewPager = pager;
    this.tabHost.setOnTabChangedListener(this);
    this.viewPager.setAdapter(this);
    this.viewPager.setOnPageChangeListener(this);
}

From source file:com.zepan.android.widget.TabGroup.java

/**
 * @param context//from  ww  w .ja  v a2 s  .c  o  m
 * @param attrs
 */
public TabGroup(Context context, AttributeSet attrs) {
    super(context, attrs);
    FragmentActivity ac = (FragmentActivity) context;
    frmMgr = ac.getSupportFragmentManager();
}

From source file:com.boko.vimusic.adapters.PagerAdapter.java

/**
 * Constructor of <code>PagerAdatper<code>
 * /* www . j av a 2  s . c  o m*/
 * @param fragmentActivity
 *            The {@link Activity} of the {@link Fragment}.
 */
public PagerAdapter(final FragmentActivity fragmentActivity) {
    super(fragmentActivity.getSupportFragmentManager());
    mFragmentActivity = fragmentActivity;
}

From source file:org.droid2droid.ui.TabsAdapter.java

public TabsAdapter(FragmentActivity activity, ActionBar actionBar, ViewPager pager) {
    super(activity.getSupportFragmentManager());
    mContext = activity;/*w ww  .  j  a va  2  s  . c om*/
    mActionBar = actionBar;
    mViewPager = pager;
    mViewPager.setAdapter(this);
    mViewPager.setOnPageChangeListener(this);
}