Search in sources :

Example 1 with FrontPageFragment

use of ingage.ingage20.fragments.FrontPageFragment in project iNGAGE by davis123123.

the class NavigationDrawer method showHome.

public void showHome() {
    final Fragment fragment = new FrontPageFragment();
    containingActivity.getSupportFragmentManager().beginTransaction().replace(fragmentContainerId, fragment, FrontPageFragment.class.getSimpleName()).setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN).commit();
    // Set the title for the fragment.
    final ActionBar actionBar = containingActivity.getSupportActionBar();
    actionBar.setTitle(app_name);
    closeDrawer();
}
Also used : FrontPageFragment(ingage.ingage20.fragments.FrontPageFragment) Fragment(android.support.v4.app.Fragment) FrontPageFragment(ingage.ingage20.fragments.FrontPageFragment) ActionBar(android.support.v7.app.ActionBar)

Example 2 with FrontPageFragment

use of ingage.ingage20.fragments.FrontPageFragment in project iNGAGE by davis123123.

the class NavigationDrawer method showHome.

public void showHome() {
    final Fragment fragment = new FrontPageFragment();
    containingActivity.getSupportFragmentManager().beginTransaction().replace(fragmentContainerId, fragment, FrontPageFragment.class.getSimpleName()).setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN).commit();
    // Set the title for the fragment.
    final ActionBar actionBar = containingActivity.getSupportActionBar();
    actionBar.setTitle(app_name);
    closeDrawer();
}
Also used : FrontPageFragment(ingage.ingage20.fragments.FrontPageFragment) FrontPageFragment(ingage.ingage20.fragments.FrontPageFragment) Fragment(android.support.v4.app.Fragment) ActionBar(android.support.v7.app.ActionBar)

Aggregations

Fragment (android.support.v4.app.Fragment)2 ActionBar (android.support.v7.app.ActionBar)2 FrontPageFragment (ingage.ingage20.fragments.FrontPageFragment)2