简体   繁体   中英

TextView text not wrapping on some devices

I have an app on the market. It worked great on all devices that I tested on before release but everyone once and a while a user emails me with the below issue. Please see screenshot.

在此处输入图片说明

The TextView text just runs off the screen instead of wrapping. If a user is having this trouble, it happens on all TextViews in the app for them that need to wrap. Also, as seen in the screenshot, the text also becomes white instead of black like it should be.

Out of ~1500 installs, it has been reported to me by 3 users. So far, all 3 have been tablets and not phones. Below are the names of the tablets:

  • Samsung Galaxy Pad 10.1
  • Vizio 8 inch
  • Toshiba Thrive

Any ideas why this is happening to so few devices?

在textView xml参数中尝试android:lines="2"

In the TextView documentation you have parameters of the TextView object such as..

  • android:ellipsize (Set this to none)
  • android:maxLines (Set to a 100 or something)

Some of the above might work. Try them out. Browse through the docs until you find the correct setup for your TextView.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM