Best code examples for Android FragmentTransaction class (android.support.v4.app.FragmentTransaction)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android FragmentTransaction class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android FragmentTransaction examples from Open Source projects
This code example shows how to use the following methods: addToBackStack, remove
63:	transaction.remove(current); 
64:	transaction.addToBackStack(null); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: add, commit
64:	fragmentTransaction.add(fragment, null); 
65:	fragmentTransaction.commit(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
15:	public class SherlockFragment extends Fragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: commit, remove
41:	tr.remove(frag); 
-
43:	tr.commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setRetainInstance
20:	public ColorFragment(int colorRes) { 
-
22:	setRetainInstance(true); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class LoadingFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: commit, remove
80:	fragmentTransaction.remove(prev); 
-
82:	fragmentTransaction.commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addToBackStack, commit, replace
54:	ft.replace(android.R.id.content, content); 
55:	ft.addToBackStack(null); 
56:	ft.commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: setRetainInstance
33:	super(); 
-
36:	setRetainInstance(true); 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
25:	public class FragmentTabs extends FragmentActivity implements LocationListener{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: commit, remove
113:	fragmentTransaction.remove(prev); 
-
115:	fragmentTransaction.commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addToBackStack, remove
98:	fragmentTransaction.remove(prev); 
-
100:	fragmentTransaction.addToBackStack(null); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: add, commit
17:	fragmentTransaction.add( fragment, null ); 
18:	fragmentTransaction.commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
13:	public class FeedIntelligenceSelectorFragment extends Fragment implements StateChangedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: addToBackStack, remove
20:	ft.remove(prev); 
-
22:	ft.addToBackStack(null); 
-
25:	fragment.show(ft, "time_dialog"); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: attach, commit
45:	ft.attach(messagesFragment); 
-
49:	ft.commit(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
10:	public class TaskListActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: addToBackStack, remove
112:	fragmentTransaction.remove(prev); 
-
114:	fragmentTransaction.addToBackStack(null); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: commit, remove
140:	fragmentTransaction.remove(prev); 
-
142:	fragmentTransaction.commit(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
28:	public class OptionsMenuSupportFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class TestFragmentActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods: addToBackStack, remove
123:	fragmentTransaction.remove(prev); 
-
125:	fragmentTransaction.addToBackStack(null); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
13:	public class CustomFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
6:	public class DetailForm extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
24:	public class DetailsFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class Weather extends FragmentActivity 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	public class SherlockFragment extends Fragment implements OnCreateOptionsMenuListener, OnPrepareOptionsMenuListener, OnOptionsItemSelectedListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
16:	public class MockSlidingTabActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
57:	public static class TestFragment extends Fragment { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
10:	public class CalculatorActivity extends FragmentActivity implements OperationListFragment.ItemEventListener { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class BrewDetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	*/ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class Controller extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
15:	import android.view.ViewGroup; 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class FragmentStackActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class ServerActivity extends FragmentActivity{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
17:	public class BshFragment extends Fragment implements OnClickListener, 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
9:	public class MainActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
20:	public class BshFragment extends Fragment implements OnClickListener, 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
16:	public class BaseActivity extends FragmentActivity implements WarningDialog.DialogListener{ 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
23:	public class DetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
11:	public class BaseActivity extends FragmentActivity 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
12:	public class MainActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
10:	public class UserActivity extends FragmentActivity implements UserListFragment.Callbacks { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
17:	public class FileDetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
18:	public class PersonDetailActivity extends FragmentActivity { 
Full Snippet Info
10
CodeRank
This code example shows how to use the following methods:
30:	public class SmsBlockOfferActivity extends FragmentActivity 
Full Snippet Info
10
CodeRank
Related Android FragmentTransaction Questions & Answers:
See Code Examples for Android FragmentTransaction Methods: