Top "Textview" questions

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

Android Paint: .measureText() vs .getTextBounds()

I'm measuring text using Paint.getTextBounds(), since I'm interested in getting both the height and width of the text to …

android android-layout textview
Different font size of strings in the same TextView

I have a textView inside with a number (variable) and a string, how can I give the number one size …

android string textview text-size
Is there an easy way to strike through text in an app widget?

I was wondering if there is an easy way to strike text within an app widget in Android. In a …

android widget textview strikethrough
What is default color for text in textview?

I set the color to red , and after that I want to set the color again back to default, but …

android colors textview default android-gui
TextView.setTextSize behaves abnormally - How to set text size of textview dynamically for different screens

Calling TextView.setTextSize() is working abnormally. Right after the call to setTextSize if we get a getTextSize its returning a …

android textview
How to set a ripple effect on textview or imageview on Android?

I want to set a ripple effect on textview and imageview in Android Studio. How can I do it?

android android-imageview textview material-design
Android TextView with Clickable Links: how to capture clicks?

I have a TextView which is rendering basic HTML, containing 2+ links. I need to capture clicks on the links and …

android hyperlink textview
Change text color of one word in a TextView

I am looking for a way to change the color of a text of a single word in a TextView …

android string colors textview
Android automatic horizontally scrolling TextView

I am trying to implement a single-line text view that will scroll automatically. But I unfortunatly cannot get it to …

android scroll textview
How to scale/resize text to fit a TextView?

I'm trying to create a method for resizing multi-line text in a TextView such that it fits within the bounds (…

android resize textview autosize