Code example for FragmentActivity

Methods: getSupportFragmentManager, setTitle

0
 
		if(!leaderboardsFragment.isVisible()){
 
			android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beginTransaction();
			ft.replace(android.R.id.content, leaderboardsFragment, LEADERBOARD_FRAGMENT_TAG);
			ft.commit();
		} 
 
		this.setTitle(leaderboardTitleID);
	} 
 
	private void showAchievementsList() 
	{ 
		OKLog.d("Show achievements list"); 
 
		if(achievementsFragment == null) {
			achievementsFragment = new OKAchievementsFragment();
		} 
 
		if(!achievementsFragment.isVisible()) {
			android.support.v4.app.FragmentTransaction ft = getSupportFragmentManager().beginTransaction();