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:Main.java
public static void addFragment(Activity activity, int containerViewId, Fragment fragment, String fragmentTag) { activity.getFragmentManager().beginTransaction().setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN) .add(containerViewId, fragment, fragmentTag).disallowAddToBackStack().commit(); }
From source file:Main.java
public static void replaceFragment(Activity activity, int containerViewId, Fragment fragment, String fragmentTag, String backStackTransitionName) { activity.getFragmentManager().beginTransaction().setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN) .replace(containerViewId, fragment, fragmentTag).addToBackStack(backStackTransitionName).commit(); }
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ???dialog String.//from www. jav a 2 s. c om * @param context * @param icon * @param title ? * */ public static AlertDialogFragment showAlertDialog(Context context, int icon, String title, String message) { FragmentActivity activity = (FragmentActivity) context; AlertDialogFragment newFragment = AlertDialogFragment.newInstance(icon, title, message, null, null); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ?string?.//from www .j av a 2 s .c om * @param context * @param icon * @param title ? * @param message ??? * @param onClickListener ? */ public static AlertDialogFragment showAlertDialog(Context context, int icon, String title, String message, AlertDialogFragment.DialogOnClickListener onClickListener) { FragmentActivity activity = (FragmentActivity) context; AlertDialogFragment newFragment = AlertDialogFragment.newInstance(icon, title, message, null, onClickListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }
From source file:com.ab.util.AbDialogUtil.java
/** * ?????View//from www . java 2s. c o m * @param view * @return */ public static AbSampleDialogFragment showTipsDialog(View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); // Create and show the dialog. AbSampleDialogFragment newFragment = AbSampleDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE, android.R.style.Theme_Holo_Light); newFragment.setContentView(view); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); // ?,content?fragment,Activity ft.add(android.R.id.content, newFragment, mDialogTag).addToBackStack(null).commit(); return newFragment; }
From source file:com.bangqu.eshow.util.ESDialogUtil.java
/** * ??./* ww w . j a v a 2 s . com*/ * @param view * @return */ public static ESSampleDialogFragment showFullScreenDialog(View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); // Create and show the dialog. ESSampleDialogFragment newFragment = ESSampleDialogFragment.newInstance(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Black_NoTitleBar_Fullscreen); newFragment.setContentView(view); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, dialogTag); return newFragment; }
From source file:cn.org.eshow.framwork.util.AbDialogUtil.java
/** * ??.//from w ww .j ava 2 s . co m * @param view * @return */ public static AbSampleDialogFragment showFullScreenDialog(View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); // Create and show the dialog. AbSampleDialogFragment newFragment = AbSampleDialogFragment.newInstance(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Black_NoTitleBar_Fullscreen); newFragment.setContentView(view); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, dialogTag); return newFragment; }
From source file:com.tony.selene.dialog.AbDialogUtil.java
/** * ??.//from w w w .ja v a2 s. co m * * @param view * @return */ public static AbSampleDialogFragment showFullScreenDialog(View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); // Create and show the dialog. AbSampleDialogFragment newFragment = AbSampleDialogFragment.newInstance(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Black_NoTitleBar_Fullscreen); newFragment.setContentView(view); FragmentManager fm = activity.getFragmentManager(); android.app.FragmentTransaction ft = fm.beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(fm, dialogTag); return newFragment; }
From source file:com.tony.selene.util.AbDialogUtil.java
/** * ??.// ww w . j av a2 s . c om * * @param view * @return */ public static AbSampleDialogFragment showFullScreenDialog(View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); // Create and show the dialog. AbSampleDialogFragment newFragment = AbSampleDialogFragment.newInstance(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Black_NoTitleBar_Fullscreen); newFragment.setContentView(view); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, dialogTag); return newFragment; }
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ?String?./* w w w .j a va2 s .c o m*/ * @param context * @param title ? * @param message ??? * @param onClickListener ? */ public static AlertDialogFragment showAlertDialog(Context context, String title, String message, AlertDialogFragment.DialogOnClickListener onClickListener) { FragmentActivity activity = (FragmentActivity) context; AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, title, message, null, onClickListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }