Share via


Preference.GetView(View, ViewGroup) Method

Definition

Gets the View that will be shown in the PreferenceActivity.

[Android.Runtime.Register("getView", "(Landroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetView_Landroid_view_View_Landroid_view_ViewGroup_Handler")]
public virtual Android.Views.View? GetView (Android.Views.View? convertView, Android.Views.ViewGroup? parent);
[<Android.Runtime.Register("getView", "(Landroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;", "GetGetView_Landroid_view_View_Landroid_view_ViewGroup_Handler")>]
abstract member GetView : Android.Views.View * Android.Views.ViewGroup -> Android.Views.View
override this.GetView : Android.Views.View * Android.Views.ViewGroup -> Android.Views.View

Parameters

convertView
View

The old View to reuse, if possible. Note: You should check that this View is non-null and of an appropriate type before using. If it is not possible to convert this View to display the correct data, this method can create a new View.

parent
ViewGroup

The parent that this View will eventually be attached to.

Returns

Returns the same Preference object, for chaining multiple calls into a single statement.

Attributes

Remarks

Gets the View that will be shown in the PreferenceActivity.

Java documentation for android.preference.Preference.getView(android.view.View, 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.

Applies to

See also