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
Man Threatens to Separate Finances After Wife Refuses to Buy Daughter Earrings
Eliminating the "TLS/SSL Server Supports The Use of Static Key Ciphers" vulnerability from my PAM Server
Mickey Moniak Walk Up Song
Mileage To Walmart
What Auto Parts Stores Are Open
How to Type German letters ä, ö, ü and the ß on your Keyboard
2013 Chevy Cruze Coolant Hose Diagram
Culver's Flavor Of The Day Monroe
South Ms Farm Trader
DIN 41612 - FCI - PDF Catalogs | Technical Documentation
Why Is Stemtox So Expensive
Regular Clear vs Low Iron Glass for Shower Doors
Sams Gas Price Fairview Heights Il
charleston cars & trucks - by owner - craigslist
Available Training - Acadis® Portal
Bx11
Craighead County Sheriff's Department
UPS Store #5038, The
Hdmovie2 Sbs
How your diet could help combat climate change in 2019 | CNN
12 Top-Rated Things to Do in Muskegon, MI
Like Some Annoyed Drivers Wsj Crossword
Atlases, Cartography, Asia (Collection Dr. Dupuis), Arch…
Scheuren maar: Ford Sierra Cosworth naar de veiling
Cookie Clicker Advanced Method Unblocked
Naya Padkar Gujarati News Paper
Jesus Revolution Showtimes Near Regal Stonecrest
Rek Funerals
Access a Shared Resource | Computing for Arts + Sciences
Log in to your MyChart account
WOODSTOCK CELEBRATES 50 YEARS WITH COMPREHENSIVE 38-CD DELUXE BOXED SET | Rhino
Aid Office On 59Th Ashland
Ridge Culver Wegmans Pharmacy
Solarmovie Ma
Kaiju Paradise Crafting Recipes
Exploring TrippleThePotatoes: A Popular Game - Unblocked Hub
Craigslist In Myrtle Beach
Myql Loan Login
Merkantilismus – Staatslexikon
2020 Can-Am DS 90 X Vs 2020 Honda TRX90X: By the Numbers
Henry Ford’s Greatest Achievements and Inventions - World History Edu
Scarlet Maiden F95Zone
Mugshots Journal Star
Kb Home The Overlook At Medio Creek
Blue Beetle Showtimes Near Regal Evergreen Parkway & Rpx
Canonnier Beachcomber Golf Resort & Spa (Pointe aux Canonniers): Alle Infos zum Hotel
Is TinyZone TV Safe?
Strawberry Lake Nd Cabins For Sale
Powah: Automating the Energizing Orb - EnigmaticaModpacks/Enigmatica6 GitHub Wiki
Die 10 wichtigsten Sehenswürdigkeiten in NYC, die Sie kennen sollten
ats: MODIFIED PETERBILT 389 [1.31.X] v update auf 1.48 Trucks Mod für American Truck Simulator
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.