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