3

I an displaying Stopwatch data using TextView as 01:00:45 on the format hh:mm:ss

iPhone has the API to shown the Label in an inverted format which gives the impression of a reflection.

In iPhone , a label is first displayed on the screen. Below the first label , the second label is displayed with the data of the first label in an inverted manner , which gives an impression of a data having reflection.

Is there any API to display the TextView in inverted manner on Android?

enter image description here

enter image description here

After referring to the link

Kindly provide your inputs/sample code.

Community
  • 1
  • 1
chiranjib
  • 5,288
  • 8
  • 53
  • 82
  • 1
    I wonder if you could capture the drawing cache for the text view and then render it inverted in a custom view below it using canvas calls. – Matthew Mar 25 '11 at 16:07
  • kindly help if anyone aware of , still not able to develop the required reflection – chiranjib Mar 26 '11 at 18:32

1 Answers1

0

1)To display inverted text with respect to x-axis

android:rotationX="180"

(add this in the xml file within the respective element)

2)To display inverted text with respect to y-axis

android:rotationY="180"

(add this in the xml file within the respective element)

Praveen Gowda I V
  • 9,569
  • 4
  • 41
  • 49
Narayanan Ramanathan
  • 1,310
  • 10
  • 18