Top "Textview" questions

Text View is an UI element that allows users to view and/or modify the displayed text.

How do I center text horizontally and vertically in a TextView?

How do I center the text horizontally and vertically in a TextView, so that it appears exactly in the middle …

android textview
How to set the text color of TextView in code?

In XML, we can set a text color by the textColor attribute, like android:textColor="#FF0000". But how do I …

android colors textview
How to change fontFamily of TextView in Android

So I'd like to change the android:fontFamily in Android but I don't see any pre-defined fonts in Android. How …

android android-layout textview typeface
How to make a background 20% transparent on Android

How do I make the background of a Textview about 20% transparent (not fully transparent), where there is a color in …

android transparency textview
How to display HTML in TextView?

I have simple HTML: <h2>Title</h2><br> <p>description here</…

android html xml-parsing textview
How to set the font style to bold, italic and underlined in an Android TextView?

I want to make a TextView's content bold, italic and underlined. I tried the following code and it works, but …

android textview text-styling
Making TextView scrollable on Android

I am displaying text in a textview that appears to be too long to fit into one screen. I need …

android scroll textview
How to make links in a TextView clickable?

I have the following TextView defined: <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@…

android hyperlink textview clickable
Font size of TextView in Android application changes on changing font size from native settings

I want to specify my own text size in my application, but I am having a problem doing this. When …

android android-layout textview android-fonts