Preference.GetView(View, 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.
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
.
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.