开发者

Display TextView data in inverted manner

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?

Display TextView data in inverted manner

Display TextView data in inverted manner

After referring to the link

  • How can you display upside down text with a textview in Android? 开发者_如何学C & using the sample canvas code for rotation using 180 , I am getting the inverted text in green colour(displayed above) . But my requirement is to display a reflection , which is actually the text displayed in red colour.

Kindly provide your inputs/sample code.


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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜