List of usage examples for android.support.v4.app AlertDialogFragment show
public void show(FragmentManager manager, String tag)
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ?View.//from w w w. j a v a 2s.c o m * @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
/** * ???dialog View.// w w w . ja va 2 s .c om * @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
/** * ?String./*from w w w . j av a 2 s .co m*/ * @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 w w . j a va 2 s.com*/ * @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 String.//w w w.j ava 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
/** * ???dialog String./* w ww.j a v a 2s .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
/** * ?View?.// www. ja v a 2 s.co 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; }
From source file:com.aoppp.gatewaymaster.dialogs.DialogUtil.java
/** * ?String?.// w ww. j av a 2s. 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?./*ww w . j a v a 2s . c om*/ * @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
/** * ?string?./*w ww. j av a2 s. c o m*/ * @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; }