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
/** * /*www. j ava 2 s . co m*/ * @param popStack */ public void startTest(final boolean popStack) { if (networkInfoCollector != null) { if (!networkInfoCollector.hasConnectionFromAndroidApi()) { showNoNetworkConnectionToast(); return; } } final boolean loopMode = ConfigHelper.isLoopMode(this); if (loopMode) { startService(new Intent(this, RMBTLoopService.class)); } else { FragmentTransaction ft; ft = fm.beginTransaction(); final RMBTTestFragment rmbtTestFragment = new RMBTTestFragment(); ft.replace(R.id.fragment_content, rmbtTestFragment, AppConstants.PAGE_TITLE_TEST); ft.addToBackStack(AppConstants.PAGE_TITLE_TEST); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); if (popStack) fm.popBackStack(); ft.commit(); final Intent service = new Intent(RMBTService.ACTION_START_TEST, null, this, RMBTService.class); startService(service); } }
From source file:com.pszh.ablibrary.util.AbDialogUtil.java
/** * ??.//from ww w .jav a 2 s . c o m * @param context * @param indeterminateDrawable * @param message * @param abDialogOnLoadListener * @return */ public static AbRefreshDialogFragment showRefreshPanel(Context context, int indeterminateDrawable, String message, AbDialogFragment.AbDialogOnLoadListener abDialogOnLoadListener) { FragmentActivity activity = (FragmentActivity) context; AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Light_Panel); newFragment.setIndeterminateDrawable(indeterminateDrawable); newFragment.setMessage(message); newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }
From source file:ab.util.AbDialogUtil.java
/** * ??.// w w w .j a v a2s . c o m * * @param context * @param indeterminateDrawable * @param message * @param * @return */ public static AbRefreshDialogFragment showRefreshDialog(Context context, int indeterminateDrawable, String message, AbDialogOnLoadListener abDialogOnLoadListener) { FragmentActivity activity = (FragmentActivity) context; AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo_Light_Dialog); newFragment.setIndeterminateDrawable(indeterminateDrawable); newFragment.setMessage(message); newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }
From source file:ab.util.AbDialogUtil.java
/** * ??.//from ww w .jav a 2 s . co m * * @param context * the context * @param indeterminateDrawable * @param message * the message */ public static AbRefreshDialogFragment showRefreshPanel(Context context, int indeterminateDrawable, String message) { FragmentActivity activity = (FragmentActivity) context; AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Light_Panel); newFragment.setIndeterminateDrawable(indeterminateDrawable); newFragment.setMessage(message); newFragment.setAbDialogOnLoadListener(null); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }
From source file:ab.util.AbDialogUtil.java
/** * ??./*from w w w .j a v a2s .com*/ * * @param context * @param indeterminateDrawable * @param message * @param * @return */ public static AbRefreshDialogFragment showRefreshPanel(Context context, int indeterminateDrawable, String message, AbDialogOnLoadListener abDialogOnLoadListener) { FragmentActivity activity = (FragmentActivity) context; AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Light_Panel); newFragment.setIndeterminateDrawable(indeterminateDrawable); newFragment.setMessage(message); newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void showResultsAfterTest(String testUuid) { popBackStackFull();/* w w w .j a v a2 s. c o m*/ final RMBTResultPagerFragment fragment = new RMBTResultPagerFragment(); final Bundle args = new Bundle(); args.putString(RMBTResultPagerFragment.ARG_TEST_UUID, testUuid); fragment.setArguments(args); final FragmentManager fm = getFragmentManager(); final FragmentTransaction ft; ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_HISTORY_PAGER); ft.addToBackStack(AppConstants.PAGE_TITLE_HISTORY_PAGER); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_HISTORY_PAGER); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
public void initApp(boolean duringCreate) { //check log directory and send log files to control server if available checkLogs(getApplicationContext(), new OnCompleteListener() { @Override// w w w. j a va2 s .co m public void onComplete(int flag, Object object) { //after log check: redirect system output to file if option is set redirectSystemOutput(ConfigHelper.isSystemOutputRedirectedToFile(RMBTMainActivity.this)); } }); popBackStackFull(); FragmentTransaction ft; ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, new RMBTMainMenuFragment(), AppConstants.PAGE_TITLE_MAIN); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); checkNews(getApplicationContext()); checkSettings(false, null); //checkIp(); waitForSettings(true, false, false); fetchMapOptions(); historyResultLimit = Config.HISTORY_RESULTLIMIT_DEFAULT; if (!duringCreate && geoLocation != null) geoLocation.start(); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * /*from w ww . j a v a2 s . co m*/ * @param popStack */ public void showHistory(final boolean popStack) { popBackStackFull(); FragmentTransaction ft; ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, new RMBTHistoryFragment(), AppConstants.PAGE_TITLE_HISTORY); ft.addToBackStack(AppConstants.PAGE_TITLE_HISTORY); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); if (popStack) { fm.popBackStack(); } ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_HISTORY); }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * /*from www .java2 s .c om*/ * @param itemList * @param pos */ public void showHistoryPager(final int pos) { if (historyStorageList != null) { // final RMBTHistoryPagerFragment fragment = new RMBTHistoryPagerFragment(); final Bundle args = new Bundle(); final RMBTResultPagerFragment fragment = new RMBTResultPagerFragment(); String testUuid = historyStorageList.get(pos).get("test_uuid"); //testUuid = "842356d7-a863-48f9-8220-678125fb3a76"; //testUuid = "0d765559-ab16-4fa1-b776-4040e18bf134"; //testUuid = "dbf47f08-711f-4cfa-9fd9-78f06a7a7df3"; args.putString(RMBTResultPagerFragment.ARG_TEST_UUID, testUuid); fragment.setArguments(args); final FragmentTransaction ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_HISTORY_PAGER); ft.addToBackStack(AppConstants.PAGE_TITLE_HISTORY_PAGER); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_HISTORY_PAGER); } }
From source file:at.alladin.rmbt.android.main.RMBTMainActivity.java
/** * /*from w w w. ja v a2 s.co m*/ * @param uid */ public void showResultDetail(final String testUUid) { FragmentTransaction ft; final Fragment fragment = new RMBTTestResultDetailFragment(); final Bundle args = new Bundle(); args.putString(RMBTTestResultDetailFragment.ARG_UID, testUUid); fragment.setArguments(args); ft = fm.beginTransaction(); ft.replace(R.id.fragment_content, fragment, AppConstants.PAGE_TITLE_RESULT_DETAIL); ft.addToBackStack(AppConstants.PAGE_TITLE_RESULT_DETAIL); ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); ft.commit(); refreshActionBar(AppConstants.PAGE_TITLE_RESULT_DETAIL); }