StyledDialogFragment

public class StyledDialogFragment extends DialogFragment

You must use the inflateThemedLayout() for inflate a view for the setView() for a correct theme’s work.

Fields

mAddScrollForView

protected boolean mAddScrollForView

mBaseView

protected RelativeLayout mBaseView

mButtonNegative

protected Button mButtonNegative

mButtonPositive

protected Button mButtonPositive

mButtons

protected LinearLayout mButtons

mContext

protected ContextThemeWrapper mContext

mDialogBodyLayout

protected LinearLayout mDialogBodyLayout

mDialogBodyLayoutScrolled

protected LinearLayout mDialogBodyLayoutScrolled

mDialogBodyScroll

protected ScrollView mDialogBodyScroll

mIconId

protected Integer mIconId

mIsThemeDark

protected boolean mIsThemeDark

mKeepInstance

protected boolean mKeepInstance

mMessage

protected TextView mMessage

mMessageId

protected Integer mMessageId

mMessageText

protected CharSequence mMessageText

mNegativeText

protected CharSequence mNegativeText

mNegativeTextId

protected Integer mNegativeTextId

mOnCancelListener

protected OnCancelListener mOnCancelListener

mOnDismissListener

protected OnDismissListener mOnDismissListener

mOnNegativeClickedListener

protected OnNegativeClickedListener mOnNegativeClickedListener

mOnPositiveClickedListener

protected OnPositiveClickedListener mOnPositiveClickedListener

mPositiveText

protected CharSequence mPositiveText

mPositiveTextId

protected Integer mPositiveTextId

mThemeResId

protected Integer mThemeResId

mTitleDivider

protected View mTitleDivider

mTitleDividerVisibility

protected Integer mTitleDividerVisibility

mTitleIconView

protected ImageView mTitleIconView

mTitleId

protected Integer mTitleId

mTitleText

protected CharSequence mTitleText

mTitleTextView

protected TextView mTitleTextView

mTitleView

protected LinearLayout mTitleView

mView

protected View mView

Methods

inflateThemedLayout

protected View inflateThemedLayout(int resource)

You must use the inflateThemedLayout() for inflate a view for the setView() for a correct theme’s work.

isThemeDark

public boolean isThemeDark()

onCancel

public void onCancel(DialogInterface dialog)

onCreate

public void onCreate(Bundle savedInstanceState)

onCreateDialog

public Dialog onCreateDialog(Bundle savedInstanceState)

onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

onDestroyView

public void onDestroyView()

onDismiss

public void onDismiss(DialogInterface dialog)

setIcon

public StyledDialogFragment setIcon(int iconId)

setKeepInstance

public StyledDialogFragment setKeepInstance(boolean keepInstance)

setMessage

public StyledDialogFragment setMessage(int messageId)

setMessage

public StyledDialogFragment setMessage(CharSequence messageText)

setMessageView

protected void setMessageView()

setNegativeText

public StyledDialogFragment setNegativeText(int negativeTextId)

setNegativeText

public StyledDialogFragment setNegativeText(CharSequence negativeText)

setOnCancelListener

public StyledDialogFragment setOnCancelListener(OnCancelListener onCancelListener)

setOnDismissListener

public StyledDialogFragment setOnDismissListener(OnDismissListener onDismissListener)

setOnNegativeClickedListener

public StyledDialogFragment setOnNegativeClickedListener(OnNegativeClickedListener onNegativeClickedListener)

setOnPositiveClickedListener

public StyledDialogFragment setOnPositiveClickedListener(OnPositiveClickedListener onPositiveClickedListener)

setPositiveText

public StyledDialogFragment setPositiveText(int positiveTextId)

setPositiveText

public StyledDialogFragment setPositiveText(CharSequence positiveText)

setThemeDark

public void setThemeDark(boolean isDarkTheme)

setThemeResId

public void setThemeResId(Integer themeResId)

setTitle

public StyledDialogFragment setTitle(int titleId)

setTitle

public StyledDialogFragment setTitle(CharSequence titleText)

setTitleDividerVisibility

public void setTitleDividerVisibility(int visibility)

setView

public void setView(View view, boolean addScrollForView)

You must use the inflateThemedLayout() for inflate a view for the setView() for a correct theme’s work.