Hot to make textview don't wrap text?

written by Admin


Posted on 2013-09-19


Problem

A textview in Eclipse (Android Development IDE) shows text on a single line, but on phones/tablets (and in the emulator) text wraps! ...how to resolve this issue?

Solution

In the xml file:
<TextView ... android:ellipsize="none" />

...or in the code:
textView.setEllipsize(null);

Feedback


Comments

Leave a Comment:

Search

Welcome

We need collaboration and a real boost from our community: write us an email for every trick you find!

This website is a sysadmin swiss-knife for every-day Windows, Linux and Mac administration and troubleshooting

Our database grows if YOU send us your tips and trick as soon as you find them every day!