/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
H A D | MessageDialogFragment.java | 30 MessageDialogFragment fragment = new MessageDialogFragment(); 33 fragment.setArguments(args); 34 return fragment; 38 MessageDialogFragment fragment = new MessageDialogFragment(); 41 fragment.setArguments(args); 42 return fragment;
|
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/ |
H A D | LNotificationActivity.java | 59 public Fragment fragment; field in class:LNotificationActivity.FragmentTabListener 61 public FragmentTabListener(Fragment fragment) { argument 62 this.fragment = fragment; 72 ft.replace(R.id.container, fragment); 77 ft.remove(fragment);
|
H A D | HeadsUpNotificationFragment.java | 58 * this fragment using the provided parameters. 60 * @return A new instance of fragment NotificationFragment. 63 HeadsUpNotificationFragment fragment = new HeadsUpNotificationFragment(); 64 fragment.setRetainInstance(true); 65 return fragment; 82 // Inflate the layout for this fragment
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/ |
H A D | MainActivity.java | 57 * instantiates the specified fragment class with no arguments when its tab is selected. 67 * @param activity The host Activity, used to instantiate the fragment 68 * @param cls The class representing the fragment to instantiate 78 // Check if the fragment is already initialized 79 Fragment fragment = tab.getFragment(); 80 if (fragment == null) { 82 fragment = Fragment.instantiate(mActivity, mClass.getName()); 83 tab.setFragment(fragment); 84 ft.add(android.R.id.tabcontent, fragment, tab.getTag()); 87 ft.attach(fragment); [all...] |
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
H A D | TabHelperHoneycomb.java | 49 // Check to see if we already have a fragment for this tab, probably 53 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); 54 tab.setFragment(fragment); 56 if (fragment != null && !fragment.isDetached()) { 58 ft.detach(fragment);
|
H A D | CompatTabEclair.java | 55 public CompatTab setFragment(Fragment fragment) { argument 56 mFragment = fragment;
|
H A D | TabHelperEclair.java | 40 * callback interface so the activity can take care of switching to the correct fragment. 76 // Check to see if we already have a fragment for this tab, probably 80 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); 81 tab.setFragment(fragment); 83 if (fragment != null && !fragment.isDetached()) { 85 ft.detach(fragment);
|
H A D | CompatTab.java | 40 public abstract CompatTab setFragment(Fragment fragment); argument
|
/development/samples/browseable/JumpingJack/Wearable/src/com.example.android.wearable.jumpingjack/ |
H A D | PagerAdapter.java | 48 public void addFragment(Fragment fragment) { argument 49 mFragments.add(fragment);
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
H A D | WiFiDirectBroadcastReceiver.java | 96 DeviceDetailFragment fragment = (DeviceDetailFragment) activity 98 manager.requestConnectionInfo(channel, fragment); 104 DeviceListFragment fragment = (DeviceListFragment) activity.getFragmentManager() 106 fragment.updateThisDevice((WifiP2pDevice) intent.getParcelableExtra(
|
H A D | WiFiDirectActivity.java | 146 final DeviceListFragment fragment = (DeviceListFragment) getFragmentManager() 148 fragment.onInitiateDiscovery(); 171 DeviceDetailFragment fragment = (DeviceDetailFragment) getFragmentManager() 173 fragment.showDetails(device); 196 final DeviceDetailFragment fragment = (DeviceDetailFragment) getFragmentManager() 198 fragment.resetViews(); 209 fragment.getView().setVisibility(View.GONE); 239 final DeviceListFragment fragment = (DeviceListFragment) getFragmentManager() 241 if (fragment.getDevice() == null 242 || fragment [all...] |
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
H A D | ScreenSlidePageFragment.java | 27 * A fragment representing a single step in a wizard. The fragment shows a dummy title indicating 35 * The argument key for the page number this fragment represents. 40 * The fragment's page number, which is set to the argument value for {@link #ARG_PAGE}. 45 * Factory method for this fragment class. Constructs a new fragment for the given page number. 48 ScreenSlidePageFragment fragment = new ScreenSlidePageFragment(); 51 fragment.setArguments(args); 52 return fragment; 79 * Returns the page number represented by this fragment objec [all...] |
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
H A D | MainActivity.java | 47 BatchStepSensorFragment fragment = 50 if (fragment == null) { 52 fragment = new BatchStepSensorFragment(); 53 transaction.add(fragment, FRAGTAG); 57 // Use fragment as click listener for cards, but must implement correct interface 58 if (!(fragment instanceof OnCardClickListener)){ 69 // If the retention fragment already existed, we need to pull some state.
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
H A D | FragmentTabsFragment.java | 33 * Sample fragment that contains tabs of other fragments. 84 * If you want tabs in a fragment, use the support v13 library's 102 private Fragment fragment; field in class:FragmentTabsFragment.TabManager.TabInfo 164 tab.fragment = mManager.findFragmentByTag(tab.tag); 165 if (tab.fragment != null && !tab.fragment.isDetached()) { 167 // The fragment for this tab is already there and 172 // This fragment was restored in the active state, 177 ft.detach(tab.fragment); 231 if (mLastTab.fragment ! [all...] |
H A D | FragmentHideShow.java | 50 void addShowHideListener(int buttonId, final Fragment fragment) { argument 57 if (fragment.isHidden()) { 58 ft.show(fragment); 61 ft.hide(fragment); 77 ((TextView)tv).setText("The fragment saves and restores this text."); 107 // we are sharing our layout with the other fragment we will customize
|
/development/samples/browseable/CardView/src/com.example.android.cardview/ |
H A D | CardViewFragment.java | 53 * this fragment using the provided parameters. 55 * @return A new instance of fragment NotificationFragment. 58 CardViewFragment fragment = new CardViewFragment(); 59 fragment.setRetainInstance(true); 60 return fragment; 75 // Inflate the layout for this fragment
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/ |
H A D | ContentFragment.java | 47 ContentFragment fragment = new ContentFragment(); 48 fragment.setArguments(bundle); 50 return fragment;
|
/development/samples/Support4Demos/src/com/example/android/supportv4/app/ |
H A D | FragmentHideShowSupport.java | 51 void addShowHideListener(int buttonId, final Fragment fragment) { argument 58 if (fragment.isHidden()) { 59 ft.show(fragment); 62 ft.hide(fragment); 78 ((TextView)tv).setText("The fragment saves and restores this text."); 108 // we are sharing our layout with the other fragment we will customize
|
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/ |
H A D | CollectionDemoActivity.java | 55 // Create an adapter that when requested, will return a fragment representing an object in 101 * A {@link android.support.v4.app.FragmentStatePagerAdapter} that returns a fragment 112 Fragment fragment = new DemoObjectFragment(); 115 fragment.setArguments(args); 116 return fragment; 132 * A dummy fragment representing a section of the app, but that simply displays dummy text.
|
/development/samples/browseable/BasicAndroidKeyStore/src/com.example.android.basicandroidkeystore/ |
H A D | MainActivity.java | 50 BasicAndroidKeyStoreFragment fragment = new BasicAndroidKeyStoreFragment(); 51 transaction.add(fragment, FRAGTAG); 73 // On screen logging via a fragment with a TextView.
|
/development/samples/browseable/BasicGestureDetect/src/com.example.android.basicgesturedetect/ |
H A D | MainActivity.java | 47 BasicGestureDetectFragment fragment = new BasicGestureDetectFragment(); 48 transaction.add(fragment, FRAGTAG); 71 // On screen logging via a fragment with a TextView.
|
/development/samples/browseable/BasicImmersiveMode/src/com.example.android.basicimmersivemode/ |
H A D | MainActivity.java | 47 BasicImmersiveModeFragment fragment = new BasicImmersiveModeFragment(); 48 transaction.add(fragment, FRAGTAG); 71 // On screen logging via a fragment with a TextView.
|
/development/samples/browseable/ImmersiveMode/src/com.example.android.immersivemode/ |
H A D | MainActivity.java | 47 ImmersiveModeFragment fragment = new ImmersiveModeFragment(); 48 transaction.add(fragment, FRAGTAG); 71 // On screen logging via a fragment with a TextView.
|
/development/samples/browseable/RepeatingAlarm/src/com.example.android.repeatingalarm/ |
H A D | MainActivity.java | 47 RepeatingAlarmFragment fragment = new RepeatingAlarmFragment(); 48 transaction.add(fragment, FRAGTAG); 71 // On screen logging via a fragment with a TextView.
|
/development/samples/browseable/StorageClient/src/com.example.android.storageclient/ |
H A D | MainActivity.java | 47 StorageClientFragment fragment = new StorageClientFragment(); 48 transaction.add(fragment, FRAGTAG); 71 // On screen logging via a fragment with a TextView.
|