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