List of usage examples for android.app FragmentTransaction TRANSIT_FRAGMENT_OPEN
int TRANSIT_FRAGMENT_OPEN
To view the source code for android.app FragmentTransaction TRANSIT_FRAGMENT_OPEN.
Click Source Link
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showAbout() { popBackStackFull();/*ww w .ja va2 s. c om*/ FragmentTransaction ft; ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, new RMBTAboutFragment(), AppConstants.PAGE_TITLE_ABOUT); ft.addToBackStack(AppConstants.PAGE_TITLE_ABOUT); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_ABOUT); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * /*w w w. j a v a 2s.co m*/ * @param uid */ public void showExpandedResultDetail(QoSServerResultCollection testResultArray, DetailType detailType, int position) { FragmentTransaction ft; //final RMBTResultDetailPagerFragment fragment = new RMBTResultDetailPagerFragment(); final QoSCategoryPagerFragment fragment = new QoSCategoryPagerFragment(); fragment.setQoSResult(testResultArray); fragment.setDetailType(detailType); ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_RESULT_QOS); ft.addToBackStack("result_detail_expanded"); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); fragment.setCurrentPosition(position); refreshActionBar(AppConstants.PAGE_TITLE_RESULT_QOS); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * /*www . j ava 2 s .c om*/ * @param uid */ public void showQoSTestDetails(List<QoSServerResult> resultList, List<QoSServerResultDesc> descList, int index) { FragmentTransaction ft; //final RMBTResultDetailPagerFragment fragment = new RMBTResultDetailPagerFragment(); final QoSTestDetailPagerFragment fragment = new QoSTestDetailPagerFragment(); fragment.setQoSResultList(resultList); fragment.setQoSDescList(descList); fragment.setInitPosition(index); ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_TEST_DETAIL_QOS); ft.addToBackStack(AppConstants.PAGE_TITLE_TEST_DETAIL_QOS); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_TEST_DETAIL_QOS); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showMap(boolean popBackStack) { if (popBackStack) { popBackStackFull();//from w w w . ja v a 2 s . co m } FragmentTransaction ft; ft = fm.beginTransaction(); Fragment f = new RMBTMapFragment(); Bundle bundle = new Bundle(); bundle.putBoolean(RMBTMapFragment.OPTION_ENABLE_ALL_GESTURES, true); bundle.putBoolean(RMBTMapFragment.OPTION_SHOW_INFO_TOAST, true); bundle.putBoolean(RMBTMapFragment.OPTION_ENABLE_CONTROL_BUTTONS, true); f.setArguments(bundle); ft.replace(R.id.fragment_content, f, AppConstants.PAGE_TITLE_MAP); ft.addToBackStack(AppConstants.PAGE_TITLE_MAP); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_MAP); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * @param testPoint //from ww w . j a v a 2 s . c o m * @param mapType * */ public RMBTMapFragment showMap(String mapType, LatLng initialCenter, boolean clearFilter, int viewId, boolean popBackStack) { if (popBackStack) { popBackStackFull(); } FragmentTransaction ft; setCurrentMapType(mapType); if (clearFilter) { final List<MapListSection> mapFilterListSelectionList = getMapFilterListSelectionList(); if (mapFilterListSelectionList != null) { for (final MapListSection section : mapFilterListSelectionList) { for (final MapListEntry entry : section.getMapListEntryList()) entry.setChecked(entry.isDefault()); } updateMapFilter(); } } final RMBTMapFragment fragment = new RMBTMapFragment(); final Bundle bundle = new Bundle(); bundle.putParcelable("initialCenter", initialCenter); if (viewId >= 0) { bundle.putBoolean(RMBTMapFragment.OPTION_ENABLE_ALL_GESTURES, false); bundle.putBoolean(RMBTMapFragment.OPTION_SHOW_INFO_TOAST, false); bundle.putBoolean(RMBTMapFragment.OPTION_ENABLE_CONTROL_BUTTONS, false); bundle.putBoolean(RMBTMapFragment.OPTION_ENABLE_OVERLAY, false); fragment.setArguments(bundle); ft = fm.beginTransaction(); //replace the given viewgroup, but do not add to backstack ft.replace(viewId, fragment, AppConstants.PAGE_TITLE_MINI_MAP); //ft.addToBackStack(AppConstants.PAGE_TITLE_MINI_MAP); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); } else { System.out.println("SHOW MAP"); fragment.setArguments(bundle); ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_MAP); ft.addToBackStack(AppConstants.PAGE_TITLE_MAP); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_MAP); } return fragment; }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showHelp(final String url, boolean popBackStack, String titleId) { if (popBackStack) { popBackStackFull();/*w w w. j a v a 2s.c o m*/ } FragmentTransaction ft; ft = fm.beginTransaction(); final Fragment fragment = new RMBTHelpFragment(); final Bundle args = new Bundle(); args.putString(RMBTHelpFragment.ARG_URL, url); fragment.setArguments(args); ft.replace(R.id.fragment_content, fragment, titleId); ft.addToBackStack(titleId); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(titleId); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * //from ww w . j av a 2 s. c o m */ public void showSync() { FragmentTransaction ft; ft = fm.beginTransaction(); final Fragment fragment = new RMBTSyncFragment(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_SYNC); ft.addToBackStack(AppConstants.PAGE_TITLE_SYNC); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_SYNC); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showFilter() { final FragmentManager fm = getFragmentManager(); FragmentTransaction ft;// www . j a v a 2 s. c o m final Fragment fragment = new RMBTFilterFragment(); ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_HISTORY_FILTER); ft.addToBackStack(AppConstants.PAGE_TITLE_HISTORY_FILTER); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_HISTORY_FILTER); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showNetstatFragment() { FragmentTransaction ft;//ww w . j av a 2 s.c om ft = fm.beginTransaction(); final Fragment fragment = new NetstatFragment(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_NETSTAT); ft.addToBackStack(AppConstants.PAGE_TITLE_NETSTAT); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_NETSTAT); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showLogFragment() { FragmentTransaction ft;// w w w .j a v a 2 s . c o m ft = fm.beginTransaction(); final Fragment fragment = new LogFragment(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_LOG); ft.addToBackStack(AppConstants.PAGE_TITLE_LOG); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_LOG); }