Sdílet prostřednictvím


Preference.OnBindView(View) Method

Definition

Binds the created View to the data for this Preference.

[Android.Runtime.Register("onBindView", "(Landroid/view/View;)V", "GetOnBindView_Landroid_view_View_Handler")]
protected virtual void OnBindView (Android.Views.View? view);
[<Android.Runtime.Register("onBindView", "(Landroid/view/View;)V", "GetOnBindView_Landroid_view_View_Handler")>]
abstract member OnBindView : Android.Views.View -> unit
override this.OnBindView : Android.Views.View -> unit

Parameters

view
View

The View that shows this Preference.

Attributes

Remarks

Binds the created View to the data for this Preference.

This is a good place to grab references to custom Views in the layout and set properties on them.

Make sure to call through to the superclass's implementation.

Java documentation for android.preference.Preference.onBindView(android.view.View).

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

See also