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
About eSIM on iPhone - Apple Support (AE)
How Does PayPal Show Up on Bank Statement: How Do PayPal Transactions Appear in Records?
neither of the twins was arrested,传说中的800句记7000词
Rubratings Tampa
Using GPT for translation: How to get the best outcomes
Garrison Blacksmith Bench
Noaa Charleston Wv
Celebrity Extra
Booknet.com Contract Marriage 2
Watch Mashle 2nd Season Anime Free on Gogoanime
Konkurrenz für Kioske: 7-Eleven will Minisupermärkte in Deutschland etablieren
Cvs Devoted Catalog
Bbc 5Live Schedule
Everything You Need to Know About Holly by Stephen King
Erskine Plus Portal
Michael Shaara Books In Order - Books In Order
Echat Fr Review Pc Retailer In Qatar Prestige Pc Providers – Alpha Marine Group
Gemita Alvarez Desnuda
Lazarillo De Tormes Summary and Study Guide | SuperSummary
Morristown Daily Record Obituary
Caledonia - a simple love song to Scotland
Ups Drop Off Newton Ks
Joan M. Wallace - Baker Swan Funeral Home
Holiday Gift Bearer In Egypt
Hood County Buy Sell And Trade
Engineering Beauties Chapter 1
Foolproof Module 6 Test Answers
Sensual Massage Grand Rapids
TMO GRC Fortworth TX | T-Mobile Community
Sacramento Craigslist Cars And Trucks - By Owner
Possum Exam Fallout 76
Rock Salt Font Free by Sideshow » Font Squirrel
Chapaeva Age
4083519708
Pensacola 311 Citizen Support | City of Pensacola, Florida Official Website
Grapes And Hops Festival Jamestown Ny
Space Marine 2 Error Code 4: Connection Lost [Solved]
Mta Bus Forums
Kelly Ripa Necklace 2022
How Does The Common App Work? A Guide To The Common App
Lake Kingdom Moon 31
Ig Weekend Dow
Frigidaire Fdsh450Laf Installation Manual
Blue Beetle Showtimes Near Regal Evergreen Parkway & Rpx
22 Golden Rules for Fitness Beginners – Barnes Corner Fitness
Jammiah Broomfield Ig
VerTRIO Comfort MHR 1800 - 3 Standen Elektrische Kachel - Hoog Capaciteit Carbon... | bol
Vci Classified Paducah
Kate Spade Outlet Altoona
The Quiet Girl Showtimes Near Landmark Plaza Frontenac
Germany’s intensely private and immensely wealthy Reimann family
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.