다음을 통해 공유


SimpleAdapter.IViewBinder.SetViewValue(View, Object, String) Method

Definition

Binds the specified data to the specified view.

[Android.Runtime.Register("setViewValue", "(Landroid/view/View;Ljava/lang/Object;Ljava/lang/String;)Z", "GetSetViewValue_Landroid_view_View_Ljava_lang_Object_Ljava_lang_String_Handler:Android.Widget.SimpleAdapter/IViewBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool SetViewValue (Android.Views.View? view, Java.Lang.Object? data, string? textRepresentation);
[<Android.Runtime.Register("setViewValue", "(Landroid/view/View;Ljava/lang/Object;Ljava/lang/String;)Z", "GetSetViewValue_Landroid_view_View_Ljava_lang_Object_Ljava_lang_String_Handler:Android.Widget.SimpleAdapter/IViewBinderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member SetViewValue : Android.Views.View * Java.Lang.Object * string -> bool

Parameters

view
View

the view to bind the data to

data
Object

the data to bind to the view

textRepresentation
String

a safe String representation of the supplied data: it is either the result of data.toString() or an empty String but it is never null

Returns

true if the data was bound to the view, false otherwise

Attributes

Remarks

Binds the specified data to the specified view.

When binding is handled by this ViewBinder, this method must return true. If this method returns false, SimpleAdapter will attempts to handle the binding on its own.

Java documentation for android.widget.SimpleAdapter.ViewBinder.setViewValue(android.view.View, java.lang.Object, java.lang.String).

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