Top "Textview" questions

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

How to reduce TextView line spacing

I am trying to reduce the line spacing in a TextView by setting a negative 'add' to TextView.setLineSpacing(). It …

android fonts textview truetype
Is there anyway to automatically make a TextView go to a new line after a certain amount of characters?

I can do this programmatically, but it is really inefficient, and also time consuming if I ever need to do …

android newline textview character maxlength
TextView.setText (Android) is causing crashes.. any idea why?

Trying to get started with Android development, and doing some basic work with TextViews.. For some reason TextView's setText() method …

android string textview settext
Can't resolve android.support.design. after migration to AndroidX

I am trying to get the TextView of the Snackbar with this code snippet: snackbarView.findViewById<TextView>(android.…

android textview android-support-library androidx android-snackbar
How to capitalize the first letter in custom textview?

In Custom TextView suppose if first character as a number then next character would be a character. How to find …

android textview capitalize
long press on selected text in textview in android

In my android app, I have a text view and some text in it. I want that user can see …

android textview long-press
android ClickableSpan intercepts the click event

I have a TextView in a Layout. It's so simple. I put a OnClickListener in the layout and some part …

android events textview intercept
Make a string clickable, underlined in a TextView

I want to make the string "this link" underlined and clickable, but I don't know how to achieve that. XML …

android hyperlink textview underline
Capitalize first letter of TextView in an Android layout xml file

I have a TextView in a layout xml file like this: <TextView android:id="@+id/viewId" android:layout_width="…

android textview capitalize
Add a Textview to a FrameLayout in a determined position

I'm trying to add a textView to a frameLayout. The TextView has wrap_content properties, so it grows when the …

android textview android-framelayout