次の方法で共有


DialogFragment.SetStyle(DialogFragmentStyle, Int32) Method

Definition

Call to customize the basic appearance and behavior of the fragment's dialog.

[Android.Runtime.Register("setStyle", "(II)V", "GetSetStyle_IIHandler")]
public virtual void SetStyle (Android.App.DialogFragmentStyle style, int theme);
[<Android.Runtime.Register("setStyle", "(II)V", "GetSetStyle_IIHandler")>]
abstract member SetStyle : Android.App.DialogFragmentStyle * int -> unit
override this.SetStyle : Android.App.DialogFragmentStyle * int -> unit

Parameters

style
DialogFragmentStyle

Selects a standard style: may be #STYLE_NORMAL, #STYLE_NO_TITLE, #STYLE_NO_FRAME, or #STYLE_NO_INPUT.

theme
Int32

Optional custom theme. If 0, an appropriate theme (based on the style) will be selected for you.

Attributes

Remarks

Call to customize the basic appearance and behavior of the fragment's dialog. This can be used for some common dialog behaviors, taking care of selecting flags, theme, and other options for you. The same effect can be achieve by manually setting Dialog and Window attributes yourself. Calling this after the fragment's Dialog is created will have no effect.

Java documentation for android.app.DialogFragment.setStyle(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to