Home
last modified time | relevance | path

Searched refs:ft (Results 1 – 25 of 68) sorted by relevance

123

/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/
DCompatTabHoneycomb.java84 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabReselected() local
85 ft.disallowAddToBackStack(); in onTabReselected()
86 mCallback.onTabReselected(this, ft); in onTabReselected()
87 ft.commit(); in onTabReselected()
92 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabSelected() local
93 ft.disallowAddToBackStack(); in onTabSelected()
94 mCallback.onTabSelected(this, ft); in onTabSelected()
95 ft.commit(); in onTabSelected()
100 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabUnselected() local
101 ft.disallowAddToBackStack(); in onTabUnselected()
[all …]
DTabHelperEclair.java84 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in addTab() local
85 ft.detach(fragment); in addTab()
86 ft.commit(); in addTab()
100 FragmentTransaction ft = mActivity.getSupportFragmentManager().beginTransaction(); in onTabChanged() local
106 mLastTab.getCallback().onTabUnselected(mLastTab, ft); in onTabChanged()
111 newTab.getCallback().onTabSelected(newTab, ft); in onTabChanged()
117 newTab.getCallback().onTabReselected(newTab, ft); in onTabChanged()
120 ft.commit(); in onTabChanged()
DCompatTabListener.java29 public void onTabSelected(CompatTab tab, FragmentTransaction ft); in onTabSelected() argument
35 public void onTabUnselected(CompatTab tab, FragmentTransaction ft); in onTabUnselected() argument
41 public void onTabReselected(CompatTab tab, FragmentTransaction ft); in onTabReselected() argument
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentMenuFragment.java54 FragmentTransaction ft = fm.beginTransaction(); in onCreateView() local
58 ft.add(mFragment1, "f1"); in onCreateView()
63 ft.add(mFragment2, "f2"); in onCreateView()
65 ft.commit(); in onCreateView()
88 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in updateFragmentVisibility() local
89 if (mCheckBox1.isChecked()) ft.show(mFragment1); in updateFragmentVisibility()
90 else ft.hide(mFragment1); in updateFragmentVisibility()
91 if (mCheckBox2.isChecked()) ft.show(mFragment2); in updateFragmentVisibility()
92 else ft.hide(mFragment2); in updateFragmentVisibility()
93 ft.commit(); in updateFragmentVisibility()
DFragmentTabsFragment.java161 FragmentTransaction ft = null; in handleViewStateRestored() local
174 if (ft == null) { in handleViewStateRestored()
175 ft = mManager.beginTransaction(); in handleViewStateRestored()
177 ft.detach(tab.fragment); in handleViewStateRestored()
185 ft = doTabChanged(currentTab, ft); in handleViewStateRestored()
186 if (ft != null) { in handleViewStateRestored()
187 ft.commit(); in handleViewStateRestored()
209 FragmentTransaction ft = doTabChanged(tabId, null); in onTabChanged() local
210 if (ft != null) { in onTabChanged()
211 ft.commit(); in onTabChanged()
[all …]
DFragmentMenu.java56 FragmentTransaction ft = fm.beginTransaction(); in onCreate() local
60 ft.add(mFragment1, "f1"); in onCreate()
65 ft.add(mFragment2, "f2"); in onCreate()
67 ft.commit(); in onCreate()
88 FragmentTransaction ft = getFragmentManager().beginTransaction(); in updateFragmentVisibility() local
89 if (mCheckBox1.isChecked()) ft.show(mFragment1); in updateFragmentVisibility()
90 else ft.hide(mFragment1); in updateFragmentVisibility()
91 if (mCheckBox2.isChecked()) ft.show(mFragment2); in updateFragmentVisibility()
92 else ft.hide(mFragment2); in updateFragmentVisibility()
93 ft.commit(); in updateFragmentVisibility()
DFragmentNestingTabs.java92 FragmentTransaction ft = mActivity.getFragmentManager().beginTransaction(); in TabListener() local
93 ft.detach(mFragment); in TabListener()
94 ft.commit(); in TabListener()
98 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
101 ft.add(android.R.id.content, mFragment, mTag); in onTabSelected()
103 ft.attach(mFragment); in onTabSelected()
107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
109 ft.detach(mFragment); in onTabUnselected()
113 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DFragmentTabs.java92 FragmentTransaction ft = mActivity.getFragmentManager().beginTransaction(); in TabListener() local
93 ft.detach(mFragment); in TabListener()
94 ft.commit(); in TabListener()
98 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
101 ft.add(android.R.id.content, mFragment, mTag); in onTabSelected()
103 ft.attach(mFragment); in onTabSelected()
107 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
109 ft.detach(mFragment); in onTabUnselected()
113 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DFragmentStackFragment.java40 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in onCreate() local
41 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate()
83 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in addFragmentToStack() local
84 ft.replace(R.id.simple_fragment, newFragment); in addFragmentToStack()
85 ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); in addFragmentToStack()
86 ft.addToBackStack(null); in addFragmentToStack()
87 ft.commit(); in addFragmentToStack()
DFragmentStack.java57 FragmentTransaction ft = getFragmentManager().beginTransaction(); in onCreate() local
58 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate()
79 FragmentTransaction ft = getFragmentManager().beginTransaction(); in addFragmentToStack() local
80 ft.replace(R.id.simple_fragment, newFragment); in addFragmentToStack()
81 ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); in addFragmentToStack()
82 ft.addToBackStack(null); in addFragmentToStack()
83 ft.commit(); in addFragmentToStack()
DFragmentCustomAnimations.java55 FragmentTransaction ft = getFragmentManager().beginTransaction(); in onCreate() local
56 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate()
77 FragmentTransaction ft = getFragmentManager().beginTransaction(); in addFragmentToStack() local
78 ft.setCustomAnimations(R.animator.fragment_slide_left_enter, in addFragmentToStack()
82 ft.replace(R.id.simple_fragment, newFragment); in addFragmentToStack()
83 ft.addToBackStack(null); in addFragmentToStack()
84 ft.commit(); in addFragmentToStack()
DFragmentArgumentsFragment.java38 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in onCreate() local
40 ft.add(R.id.created1, newFragment); in onCreate()
42 ft.add(R.id.created2, newFragment); in onCreate()
43 ft.commit(); in onCreate()
DActionBarTabs.java96 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
97 ft.add(R.id.fragment_content, mFragment, mFragment.getText()); in onTabSelected()
100 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
101 ft.remove(mFragment); in onTabUnselected()
104 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
DFragmentHideShow.java60 FragmentTransaction ft = getFragmentManager().beginTransaction(); in addShowHideListener()
61 ft.setCustomAnimations(android.R.animator.fade_in, in addShowHideListener()
64 ft.show(fragment); in addShowHideListener()
67 ft.hide(fragment); in addShowHideListener()
70 ft.commit(); in addShowHideListener()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DFragmentMenuFragmentSupport.java55 FragmentTransaction ft = fm.beginTransaction(); in onCreateView() local
59 ft.add(mFragment1, "f1"); in onCreateView()
64 ft.add(mFragment2, "f2"); in onCreateView()
66 ft.commit(); in onCreateView()
89 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in updateFragmentVisibility() local
90 if (mCheckBox1.isChecked()) ft.show(mFragment1); in updateFragmentVisibility()
91 else ft.hide(mFragment1); in updateFragmentVisibility()
92 if (mCheckBox2.isChecked()) ft.show(mFragment2); in updateFragmentVisibility()
93 else ft.hide(mFragment2); in updateFragmentVisibility()
94 ft.commit(); in updateFragmentVisibility()
DFragmentMenuSupport.java58 FragmentTransaction ft = fm.beginTransaction(); in onCreate() local
62 ft.add(mFragment1, "f1"); in onCreate()
67 ft.add(mFragment2, "f2"); in onCreate()
69 ft.commit(); in onCreate()
90 FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in updateFragmentVisibility() local
91 if (mCheckBox1.isChecked()) ft.show(mFragment1); in updateFragmentVisibility()
92 else ft.hide(mFragment1); in updateFragmentVisibility()
93 if (mCheckBox2.isChecked()) ft.show(mFragment2); in updateFragmentVisibility()
94 else ft.hide(mFragment2); in updateFragmentVisibility()
95 ft.commit(); in updateFragmentVisibility()
DFragmentStackFragmentSupport.java41 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in onCreate() local
42 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate()
95 FragmentTransaction ft = getChildFragmentManager().beginTransaction(); in addFragmentToStack() local
96 ft.replace(R.id.simple_fragment, newFragment); in addFragmentToStack()
97 ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); in addFragmentToStack()
98 ft.addToBackStack(null); in addFragmentToStack()
99 ft.commit(); in addFragmentToStack()
DFragmentCustomAnimationSupport.java52 FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in onCreate() local
53 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate()
74 FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in addFragmentToStack() local
75 ft.setCustomAnimations(R.anim.fragment_slide_left_enter, in addFragmentToStack()
79 ft.replace(R.id.simple_fragment, newFragment); in addFragmentToStack()
80 ft.addToBackStack(null); in addFragmentToStack()
81 ft.commit(); in addFragmentToStack()
DFragmentStackSupport.java64 FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in onCreate() local
65 ft.add(R.id.simple_fragment, newFragment).commit(); in onCreate()
86 FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in addFragmentToStack() local
87 ft.replace(R.id.simple_fragment, newFragment); in addFragmentToStack()
88 ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); in addFragmentToStack()
89 ft.addToBackStack(null); in addFragmentToStack()
90 ft.commit(); in addFragmentToStack()
/development/samples/Support7Demos/src/com/example/android/supportv7/app/
DActionBarFragmentMenu.java62 FragmentTransaction ft = fm.beginTransaction(); in onCreate() local
66 ft.add(mFragment1, "f1"); in onCreate()
71 ft.add(mFragment2, "f2"); in onCreate()
73 ft.commit(); in onCreate()
101 FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in updateFragmentVisibility() local
102 if (mCheckBox1.isChecked()) ft.show(mFragment1); in updateFragmentVisibility()
103 else ft.hide(mFragment1); in updateFragmentVisibility()
104 if (mCheckBox2.isChecked()) ft.show(mFragment2); in updateFragmentVisibility()
105 else ft.hide(mFragment2); in updateFragmentVisibility()
106 ft.commit(); in updateFragmentVisibility()
[all …]
DActionBarTabs.java94 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
95 ft.add(R.id.fragment_content, mFragment, mFragment.getText()); in onTabSelected()
99 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
100 ft.remove(mFragment); in onTabUnselected()
104 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/
DLNotificationActivity.java66 public void onTabReselected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabReselected() argument
71 public void onTabSelected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabSelected() argument
72 ft.replace(R.id.container, fragment); in onTabSelected()
76 public void onTabUnselected(ActionBar.Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
77 ft.remove(fragment); in onTabUnselected()
/development/samples/training/TabCompat/src/com/example/android/tabcompat/
DMainActivity.java77 public void onTabSelected(CompatTab tab, FragmentTransaction ft) { in onTabSelected() argument
84 ft.add(android.R.id.tabcontent, fragment, tab.getTag()); in onTabSelected()
87 ft.attach(fragment); in onTabSelected()
92 public void onTabUnselected(CompatTab tab, FragmentTransaction ft) { in onTabUnselected() argument
96 ft.detach(fragment); in onTabUnselected()
101 public void onTabReselected(CompatTab tab, FragmentTransaction ft) { in onTabReselected() argument
/development/samples/training/multiscreen/newsreader/src/com/example/android/newsreader/
DCompatActionBarNavHandler.java54 public void onTabSelected(Tab tab, FragmentTransaction ft) { in onTabSelected() argument
76 public void onTabReselected(Tab tab, FragmentTransaction ft) { in onTabReselected() argument
84 public void onTabUnselected(Tab tab, FragmentTransaction ft) { in onTabUnselected() argument
/development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/ui/
DImageGridActivity.java40 final FragmentTransaction ft = getSupportFragmentManager().beginTransaction(); in onCreate() local
41 ft.add(android.R.id.content, new ImageGridFragment(), TAG); in onCreate()
42 ft.commit(); in onCreate()

123