This is a common problem. Try using the following:
android:scrollHorizontally="true"
android:ellipsize="end"
android:maxLines="1"
………….. the scrollHorizontally is the “special sauce” that makes it work.
More Related Contents:
- How to add a TextView to LinearLayout in Android
- How do I set the text of an Android TextView from Java?
- android on Text Change Listener
- The specified child already has a parent. You must call removeView() on the child’s parent first (Android)
- Paginating text in Android
- How to change a TextView’s style at runtime
- How to add image in a TextView text?
- Create a new TextView programmatically then display it below another TextView
- How to change text of a TextView in navigation drawer header?
- Issue when using a custom font – “native typeface cannot be made”
- Why is accessing TextView of a Fragment inside Activity throwing an error
- Android: TextView automatically truncate and replace last 3 char of String
- Android: ClickableSpan in clickable TextView
- Html.ImageGetter TextView
- Android – set TextView TextStyle programmatically?
- Android BroadcastReceiver onReceive Update TextView in MainActivity
- How to get line count of textview before rendering?
- Creating LinearLayout Programmatically/Dynamically with Multiple Views
- Reference variables in java [closed]
- Can't find the way to move an image (or others clickable objects)
- How do I make an http request using cookies on Android?
- java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
- How to move marker along polyline using google map
- MultiDex NoClassDefFound error
- How do I get difference between two dates in android?, tried every thing and post
- Proguard and reflection in Android
- How do I open the SearchView programmatically?
- How to disable and enable the scrolling on android ScrollView? [duplicate]
- Get Cell Tower Locations – Android
- Bumblebee Android studio Plugin [id: ‘com.android.application’, version: ‘7.1.0’, apply: false] was not found in any of the following sources: