android get height and width of text with angle
I have a custom textview that is capable of rotating the text inside.
Question: - Once rotated, I need to get the width and height of rotated text only (not the texview). Is this possible. I tried u开发者_运维问答sing Paint objects to measure text but it doesn't give me right answers since my text is rotated.
I am really out of ideas right now that's why I need help from you guys. Any idea will do.
Thanks all.
There might be an easy way, but doing the math yourself is also pretty easy. If you know some trigonometry, and you should if you're a programmer, just calculate the height and width yourself.
精彩评论