Code examples for FragmentManager

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
60:	FragmentTransaction transaction = manager.beginTransaction(); 
61:	Fragment current = manager.findFragmentByTag(tag); 
-
67:	fragment.show(manager, tag); 
Full Snippet Info
8
CodeRank
62:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
64:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
71:	.show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
8
CodeRank
79:	mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 
-
86:	fm.beginTransaction().add(mWorkFragment, "work").commit(); 
Full Snippet Info
7
CodeRank
94:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
96:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
103:	.show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
108:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
110:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
117:	.show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
119:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
121:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
-
129:	mNegativeButtonOnClickListener).show(fragmentManager, FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
51:	if (fm.findFragmentById(android.R.id.content) == null) { 
-
53:	fm.beginTransaction().add(android.R.id.content, list).commit(); 
Full Snippet Info
7
CodeRank
109:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
111:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
136:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
-
138:	Fragment prev = fragmentManager.findFragmentByTag(FRAGMENT_TAG); 
Full Snippet Info
7
CodeRank
208:	SendTagsFragment sendTagsFragment = 
-
215:	fragmentManager.beginTransaction().add(sendTagsFragment, SEND_TAGS_STATUS_FRAGMENT_TAG).commit(); 
216:	fragmentManager.executePendingTransactions(); 
Full Snippet Info
6
CodeRank
81:	mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 
-
88:	fm.beginTransaction().add(mWorkFragment, "work").commit(); 
Full Snippet Info
7
CodeRank
36:	Fragment messagesFragment = fm.findFragmentByTag(tag); 
-
38:	final FragmentTransaction ft = fm.beginTransaction(); 
Full Snippet Info
6
CodeRank
46:	if (fm.findFragmentById(android.R.id.content) == null) 
-
49:	fm.beginTransaction().add(android.R.id.content, list).commit(); 
Full Snippet Info
6
CodeRank
161:	for(int i = 0; i < fm.getBackStackEntryCount(); i ++) 
Full Snippet Info
6
CodeRank
30:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
Full Snippet Info
6
CodeRank
72:	int count = fm.getBackStackEntryCount(); 
-
74:	FragmentTransaction ft = fm.beginTransaction(); 
-
77:	fm.popBackStack(); 
78:	fm.executePendingTransactions(); 
-
80:	String name = fm.getBackStackEntryAt(count-2).getName(); 
81:	mCurrentFragment = fm.findFragmentByTag(name); 
Full Snippet Info
6
CodeRank
55:	mFragment = fm.findFragmentByTag(mTag); 
-
57:	FragmentTransaction ft = fm.beginTransaction(); 
Full Snippet Info
6
CodeRank
25:	if (fm.findFragmentById(android.R.id.content) == null) { 
-
27:	fm.beginTransaction().add(android.R.id.content, list).commit(); 
Full Snippet Info
6
CodeRank
16:	FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction(); 
Full Snippet Info
6
CodeRank
81:	mWorkFragment = (RetainedFragment)fm.findFragmentByTag("work"); 
-
88:	fm.beginTransaction().add(mWorkFragment, "work").commit(); 
Full Snippet Info
6
CodeRank