• Post Reply Bookmark Topic Watch Topic
  • New Topic

textview rotation by touch

 
Jeet Dholakia
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

i have a textview which i want to rotate using finger touch,basically user will swipe down or up depending and i want to calculate the angle of touch and rotate the textview accordingly..

theres a method called textView.setRotation(float angle), my question is how to implement this? inside the clicklistener? how to rotate text continuously as user swipes up or down?

im looking for some direction

thanks

jeet
 
And then we all jump out and yell "surprise! we got you this tiny ad!"
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!