TextView tv = new TextView(this);
tv.setText(String.valueOf(number));
or
tv.setText(""+number);
More Related Contents:
- Making TextView scrollable on Android
- How to adjust text font size to fit textview
- How can I change the color of a part of a TextView?
- Android TextView with Clickable Links: how to capture clicks?
- How to make a custom TextView?
- Android textview outline text
- How to handle RTL languages on pre 4.2 versions of Android?
- Android automatic horizontally scrolling TextView
- How to pass a view’s onClick event to its parent on Android?
- How to draw rounded rectangle in Android UI?
- How to hide underbar in EditText
- How to make the text direction from right to left
- How to change fragment’s textView’s text from activity
- How to set the font style to bold, italic and underlined in an Android TextView?
- Set Text to Integer Value
- To draw an Underline below the TextView in Android
- Multiline TextView in Android?
- Change the text color of a single ClickableSpan when pressed without affecting other ClickableSpans in the same TextView
- Android TextView Text not getting wrapped
- Justify text in an Android app using a WebView but presenting a TextView-like interface?
- Android, How to limit width of TextView (and add three dots at the end of text)?
- How to make text glow?
- Adding custom Font to Theme in Android
- How to set text color of a TextView programmatically? [duplicate]
- How do I add a bullet symbol in TextView?
- Android – Expandable TextView with Animation
- Android Transparent TextView?
- Android ImageGetter images overlapping text
- How do you change text to bold in Android?
- Custom Fonts and Custom Textview on Android