TextView.SetText Method (Android.Widget) (2024)

Share via

  • Reference

Definition

Namespace:
Android.Widget
Assembly:
Mono.Android.dll

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.

Overloads

SetText(Char[], Int32, Int32)

Sets the TextView to display the specified slice of the specifiedchar array.

SetText(Int32, TextView+BufferType)

Sets the text to be displayed using a string resource identifier.

SetText(String, TextView+BufferType)

Sets the text to be displayed using a string resource identifier.

SetText(Int32)

Sets the text to be displayed using a string resource identifier.

SetText(ICharSequence, TextView+BufferType)

Sets the text to be displayed using a string resource identifier.

SetText(Char[], Int32, Int32)

Sets the TextView to display the specified slice of the specifiedchar array.

[Android.Runtime.Register("setText", "([CII)V", "")]public void SetText (char[] text, int start, int len);
[<Android.Runtime.Register("setText", "([CII)V", "")>]member this.SetText : char[] * int * int -> unit

Parameters

start
Int32

start index in the char array

len
Int32

length of char count after start

Attributes

Remarks

Sets the TextView to display the specified slice of the specified char array. You must promise that you will not change the contents of the array except for right before another call to setText(), since the TextView has no way to know that the text has changed and that it needs to invalidate and re-layout.

Java documentation for android.widget.TextView.setText(char[], int, int).

Portions of this page are modifications based on work created andshared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetText(Int32, TextView+BufferType)

Sets the text to be displayed using a string resource identifier.

[Android.Runtime.Register("setText", "(ILandroid/widget/TextView$BufferType;)V", "")]public void SetText (int resid, Android.Widget.TextView.BufferType? type);
[<Android.Runtime.Register("setText", "(ILandroid/widget/TextView$BufferType;)V", "")>]member this.SetText : int * Android.Widget.TextView.BufferType -> unit

Parameters

resid
Int32

the resource identifier of the string resource to be displayed

Attributes

Remarks

Java documentation for android.widget.TextView.setText(int).

Portions of this page are modifications based on work created andshared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetText(String, TextView+BufferType)

Sets the text to be displayed using a string resource identifier.

public void SetText (string? text, Android.Widget.TextView.BufferType? type);
member this.SetText : string * Android.Widget.TextView.BufferType -> unit

Parameters

text
String

Remarks

Java documentation for android.widget.TextView.setText(int).

Portions of this page are modifications based on work created andshared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetText(Int32)

Sets the text to be displayed using a string resource identifier.

[Android.Runtime.Register("setText", "(I)V", "")]public void SetText (int resid);
[<Android.Runtime.Register("setText", "(I)V", "")>]member this.SetText : int -> unit

Parameters

resid
Int32

the resource identifier of the string resource to be displayed

Attributes

Remarks

Sets the text to be displayed using a string resource identifier.

Java documentation for android.widget.TextView.setText(int).

Portions of this page are modifications based on work created andshared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

SetText(ICharSequence, TextView+BufferType)

Sets the text to be displayed using a string resource identifier.

[Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "GetSetText_Ljava_lang_CharSequence_Landroid_widget_TextView_BufferType_Handler")]public virtual void SetText (Java.Lang.ICharSequence? text, Android.Widget.TextView.BufferType? type);
[<Android.Runtime.Register("setText", "(Ljava/lang/CharSequence;Landroid/widget/TextView$BufferType;)V", "GetSetText_Ljava_lang_CharSequence_Landroid_widget_TextView_BufferType_Handler")>]abstract member SetText : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unitoverride this.SetText : Java.Lang.ICharSequence * Android.Widget.TextView.BufferType -> unit

Parameters

Attributes

Remarks

Java documentation for android.widget.TextView.setText(int).

Portions of this page are modifications based on work created andshared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

TextView.SetText Method (Android.Widget) (2024)
Top Articles
Binary options payouts - Why finding the best is key
How do I configure automatic syncing on a Android device?
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Doby's Funeral Home Obituaries
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Select Truck Greensboro
Things To Do In Atlanta Tomorrow Night
Non Sequitur
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Craigslist In Flagstaff
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Testberichte zu E-Bikes & Fahrrädern von PROPHETE.
Aaa Saugus Ma Appointment
Geometry Review Quiz 5 Answer Key
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Cvs Sport Physicals
Mercedes W204 Belt Diagram
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Facebook Marketplace Marrero La
Nobodyhome.tv Reddit
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Selly Medaline
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 5959

Rating: 4 / 5 (61 voted)

Reviews: 92% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.