Android TextView Wrap

Here is my problem. How to make text not wrap?

I already tried to make the text smaller. Does not work. Tried to do singleline="true" . Here is what it does (2 screen shot 6-7 textview)

1 Screenshot) So I did it in Eclipse

2 Screenshot) Here is how it is displayed in the emulator

Here is I made it in the EclipseHere is how it showen in the emulator

+6
source share
2 answers

Try setting android:ellipsize to none for each TextView . See this attribute for more details.

From xml:

 <TextView ... android:ellipsize="none" /> 

From the code:

  TextView textView = new TextView(context); ... textView.setEllipsize(null); 
+4
source

try giving android: maxLines = 1 ... the singleLine property should also work ...

+3
source

Source: https://habr.com/ru/post/889865/


All Articles