• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Upside Down text

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does any one know how to make text upside down in android? I am working on a chess clock and would like to make the text for the top user readable by him. I already have the XML set up exactly how I want it so If its possible to keep my XML file for the rest of the content view I would greatly appreciate that method. Thank you every one.
 
Ranch Hand
Posts: 254
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not sure how to do that with Android. But should the common solution be to put the text on a panel then rotate it by 180 degrees?
 
Ranch Hand
Posts: 56
Android Mac Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The best way to create something like this is to create your own View and override the onDraw() method to draw onto this view.
Then you can rotate the canvas to draw items in another angle. With an xml layout it's going to be tricky, if you don't need the text
clickable there's one way, but there's some caveat. It is possible to animate the TextView rotating it 180 degrees and then keep
the state like that. Only thing is, when you load the view you can see the text animating (in a split second but it's visible).

Overall the fastest approach would be to use the xml-layout as an sketch and build the view yourself.
 
Yes, of course, and I accept that blame. In fact, i covet that blame. As does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic