Don’t trust the Visual editor.
Your code does work in the emu.
More Related Contents:
- How to retrieve and display data from a database to TextView
- Set style for TextView programmatically
- Android: Want to set custom fonts for whole application not runtime
- How to put a border around an Android TextView?
- Single TextView with multiple colored text
- Android Paint: .measureText() vs .getTextBounds()
- How to add a TextView to a LinearLayout dynamically in Android?
- Is there an easy way to strike through text in an app widget?
- Android – Set text to TextView
- How to add a line break in an Android TextView?
- how to change text in Android TextView
- How to pass a view’s onClick event to its parent on Android?
- select a word on a tap in TextView/EditText
- Shadow Effect for a Text in Android?
- Programmatically set left drawable in a TextView
- How to get number of lines of TextView?
- Highlighting Text Color using Html.fromHtml() in Android?
- Android – Add textview to layout when button is pressed
- Display all Unicode chars in TextView
- Placing a textview on top of imageview in android
- How to bring view in front of everything?
- How to use textview.getLayout()? It returns null
- How do I enable standard copy paste for a TextView in Android?
- Which HTML tags are supported by Android TextView?
- How to remove the top and bottom space on textview of Android
- How to set a ripple effect on textview or imageview on Android?
- How to adjust text kerning in Android TextView?
- android: html in textview with link clickable [duplicate]
- Changing font size into an AlertDialog
- Copy text from TextView on Android