List of usage examples for android.support.v4.app DialogFragment STYLE_NO_TITLE
int STYLE_NO_TITLE
To view the source code for android.support.v4.app DialogFragment STYLE_NO_TITLE.
Click Source Link
From source file:com.tony.selene.dialog.AbDialogUtil.java
/** * ??.//ww w. j av a 2 s.c o m * * @param context * @param indeterminateDrawable * @param message * @param style * @param abDialogOnRefreshListener * @return */ public static AbRefreshDialogFragment showRefreshDialog(Context context, int indeterminateDrawable, String message, int style, AbDialogOnLoadListener abDialogOnLoadListener) { FragmentActivity activity = (FragmentActivity) context; AbRefreshDialogFragment newFragment = AbRefreshDialogFragment.newInstance(DialogFragment.STYLE_NO_TITLE, style); newFragment.setIndeterminateDrawable(indeterminateDrawable); newFragment.setMessage(message); newFragment.setAbDialogOnLoadListener(abDialogOnLoadListener); FragmentTransaction ft = activity.getFragmentManager().beginTransaction(); // ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN); newFragment.show(ft, dialogTag); return newFragment; }
From source file:com.xandy.calendar.EventInfoFragment.java
public EventInfoFragment(Context context, Uri uri, long startMillis, long endMillis, int attendeeResponse, boolean isDialog, int windowStyle, ArrayList<CalendarEventModel.ReminderEntry> reminders) { Resources r = context.getResources(); if (mScale == 0) { mScale = context.getResources().getDisplayMetrics().density; if (mScale != 1) { mCustomAppIconSize *= mScale; if (isDialog) { DIALOG_TOP_MARGIN *= mScale; }// w w w .j a va 2 s .c o m } } if (isDialog) { setDialogSize(r); } mIsDialog = isDialog; setStyle(DialogFragment.STYLE_NO_TITLE, 0); mUri = uri; mStartMillis = startMillis; mEndMillis = endMillis; mAttendeeResponseFromIntent = attendeeResponse; mWindowStyle = windowStyle; // Pass in null if no reminders are being specified. // This may be used to explicitly show certain reminders already known // about, such as during configuration changes. mReminders = reminders; }
From source file:com.android.calendar.EventInfoFragment.java
public EventInfoFragment(Context context, Uri uri, long startMillis, long endMillis, int attendeeResponse, boolean isDialog, int windowStyle, ArrayList<ReminderEntry> reminders) { Resources r = context.getResources(); if (mScale == 0) { mScale = context.getResources().getDisplayMetrics().density; if (mScale != 1) { mCustomAppIconSize *= mScale; if (isDialog) { DIALOG_TOP_MARGIN *= mScale; }//w w w .j a v a 2 s.com } } if (isDialog) { setDialogSize(r); } mIsDialog = isDialog; setStyle(DialogFragment.STYLE_NO_TITLE, 0); mUri = uri; mStartMillis = startMillis; mEndMillis = endMillis; mAttendeeResponseFromIntent = attendeeResponse; mWindowStyle = windowStyle; // Pass in null if no reminders are being specified. // This may be used to explicitly show certain reminders already known // about, such as during configuration changes. mReminders = reminders; }