Preference.OnCreateView(ViewGroup) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates the View to be shown for this Preference in the
PreferenceActivity
.
[Android.Runtime.Register("onCreateView", "(Landroid/view/ViewGroup;)Landroid/view/View;", "GetOnCreateView_Landroid_view_ViewGroup_Handler")]
protected virtual Android.Views.View? OnCreateView (Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("onCreateView", "(Landroid/view/ViewGroup;)Landroid/view/View;", "GetOnCreateView_Landroid_view_ViewGroup_Handler")>]
abstract member OnCreateView : Android.Views.ViewGroup -> Android.Views.View
override this.OnCreateView : Android.Views.ViewGroup -> Android.Views.View
Parameters
- parent
- ViewGroup
The parent that this View will eventually be attached to.
Returns
The View that displays this Preference.
- Attributes
Remarks
Creates the View to be shown for this Preference in the PreferenceActivity
. The default behavior is to inflate the main layout of this Preference (see #setLayoutResource(int)
. If changing this behavior, please specify a ViewGroup
with ID android.R.id#widget_frame
.
Make sure to call through to the superclass's implementation.
Java documentation for android.preference.Preference.onCreateView(android.view.ViewGroup)
.
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.