Garmin Forums
Site
Search
User
Site
Search
User
Apps & Software
Outdoor Recreation
Sports & Fitness
Pilots
Developer
Beta Program
German Forum
More
Cancel
Developer
More
Connect IQ
Connect IQ App Development Discussion
Wrap text on long string
News & Announcements
Forums
Bug Reports
Wiki
Tags
More
Cancel
Replies
2 replies
Subscribers
15 subscribers
Views
1600 views
Users
0 members are here
Options
Share
More
Cancel
Related
Wrap text on long string
cthielker
over 8 years ago
Is there a way to take a long line of text and have line breaks automatically added when the text reaches the edge of the page?
jim_m_58
over 8 years ago
Nothing automatic. You can use something like dc.getTextWidthInPixels() to get the appx length of a sting that would fit, then walk it back until there's a space and split it there, but that's about it.
Cancel
Up
0
Down
Reply
Cancel
HarryOnline
over 8 years ago
WrapText method
Yes, it can be done automatically, on any device shape. I have shared my method here:
https://forums.garmin.com/showthread.php?376269-Fortune-Quote-wrap-text-in-any-device
Cancel
Up
0
Down
Reply
Cancel