List of usage examples for android.app FragmentTransaction setTransition
public abstract FragmentTransaction setTransition(@Transit int transit);
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ??.// w ww . jav a 2 s . c om * * @param context * the context * @param indeterminateDrawable * 0 * @param message * the message */ public static ProgressDialogFragment showProgressDialog(Context context, int indeterminateDrawable, String message) { FragmentActivity activity = (FragmentActivity) context; ProgressDialogFragment newFragment = ProgressDialogFragment.newInstance(indeterminateDrawable, message); 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
/** * ???dialog String./*w w w. j a v a 2 s . c o m*/ * @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
/** * ?View./*from w w w .jav a 2 s. com*/ * @param view ? */ public static AlertDialogFragment showAlertDialog(View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, null, null, view, 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 w w w . ja va 2 s . com*/ * @param context * */ public static AlertDialogFragment showAlertDialog(Context context, String message) { FragmentActivity activity = (FragmentActivity) context; AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, null, 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
/** * ???dialog View./*w ww. j a v a2 s . c o m*/ * @param icon * @param title ? * @param view ??? */ public static AlertDialogFragment showAlertDialog(int icon, String title, View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); AlertDialogFragment newFragment = AlertDialogFragment.newInstance(icon, title, null, view, 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
/** * ???dialog View.// w ww .j a va2 s .c o m * @param title ? * @param view ??? */ public static AlertDialogFragment showAlertDialog(String title, View view) { FragmentActivity activity = (FragmentActivity) view.getContext(); AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, title, null, view, 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
/** * ???dialog String.//from w ww. ja va 2 s . com * @param context * @param title ? * */ public static AlertDialogFragment showAlertDialog(Context context, String title, String message) { FragmentActivity activity = (FragmentActivity) context; AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, 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?.//w w w. j a v a2 s. co 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; }
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ?View?./*from ww w .j a va2 s . co m*/ * @param icon * @param title ? * @param view ??? * @param onClickListener ? */ public static AlertDialogFragment showAlertDialog(int icon, String title, View view, AlertDialogFragment.DialogOnClickListener onClickListener) { FragmentActivity activity = (FragmentActivity) view.getContext(); AlertDialogFragment newFragment = AlertDialogFragment.newInstance(icon, title, null, view, onClickListener); 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
/** * ?View?./* ww w. j ava 2 s . c o m*/ * @param title ? * @param view ??? * @param onClickListener ? */ public static AlertDialogFragment showAlertDialog(String title, View view, AlertDialogFragment.DialogOnClickListener onClickListener) { FragmentActivity activity = (FragmentActivity) view.getContext(); AlertDialogFragment newFragment = AlertDialogFragment.newInstance(0, title, null, view, onClickListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, mDialogTag); return newFragment; }