共用方式為


SimpleCursorTreeAdapter.SetViewText(TextView, String) Method

Definition

Called by bindView() to set the text for a TextView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to a TextView.

[Android.Runtime.Register("setViewText", "(Landroid/widget/TextView;Ljava/lang/String;)V", "GetSetViewText_Landroid_widget_TextView_Ljava_lang_String_Handler")]
public virtual void SetViewText (Android.Widget.TextView? v, string? text);
[<Android.Runtime.Register("setViewText", "(Landroid/widget/TextView;Ljava/lang/String;)V", "GetSetViewText_Landroid_widget_TextView_Ljava_lang_String_Handler")>]
abstract member SetViewText : Android.Widget.TextView * string -> unit
override this.SetViewText : Android.Widget.TextView * string -> unit

Parameters

v
TextView

TextView to receive text

text
String

the text to be set for the TextView

Attributes

Remarks

Called by bindView() to set the text for a TextView but only if there is no existing ViewBinder or if the existing ViewBinder cannot handle binding to a TextView.

Intended to be overridden by Adapters that need to filter strings retrieved from the database.

Java documentation for android.widget.SimpleCursorTreeAdapter.setViewText(android.widget.TextView, 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