Questions tagged [rotateanimation]

An animation that controls the rotation of an object. This rotation takes place in the X-Y plane.

103 questions
3
votes
5 answers

Android - RotateAnimation - fromDegrees toDegrees variables

I'm new in Android and I have a little problem. I found this code for RotateAnimation: xml file where are stored all data of RotateAnimation:
user52252
  • 43
  • 1
  • 5
2
votes
1 answer

How can i turn a bitmap that is not all in the screen

I am trying to rotate image that is placed partly on the screen using this code: final float ROTATE_FROM = 0.0f; final float ROTATE_TO = 360.0f; RotateAnimation r = new RotateAnimation(ROTATE_FROM, ROTATE_TO, …
user733284
  • 925
  • 2
  • 11
  • 18
2
votes
3 answers

is it possible to change the values of RotateAnimation in android while it's running?

I'm using RotateAnimation and i want to change the animation while it's running, for example, changing the "toDegrees" parameter and thous making the animation shorter or longer. Thanks.
user958880
  • 487
  • 1
  • 7
  • 18
2
votes
2 answers

Rotate Animation speed

I want my animation to only spin for one rotation. Everytime I adjust the duration it just spins at the same speed for longer/slower. Where am I going wrong? private static final float ROTATE_FROM = 0.0f; private static final float ROTATE_TO =…
Jonno
  • 1,542
  • 3
  • 22
  • 39
2
votes
1 answer

Rotate animation sequence in Android

I'd like to make simple animation in Android project. I've got an image in my activity:
2
votes
1 answer

How to rotate SVG back and forth on click?

So I have this arrow SVG which I am using for hiding/displaying a div. How can I rotate that arrow back and forth on every click? Html: SVG:
Frutis
  • 489
  • 3
  • 16
2
votes
1 answer

Android Compass doesn't point North and keeps changing

So, I have been working on fixing this bug in my Android Compass for 2 days now. Basically I am trying to build a Qibla Compass using Xamarin.Android . The First step should be to build a Compass that points to North. I have translated the JAVA…
Rahul Jha
  • 1,131
  • 1
  • 10
  • 25
2
votes
1 answer

Transform only clockwise on class toggle

My toggled class rotates an element clockwise on 180 degrees when assigned. How can I modify my css to rotate an element from 180 to 0 degrees clockwise when toggled class removes? var el =…
Anton
  • 2,217
  • 3
  • 21
  • 34
2
votes
1 answer

Is there a way to animate setRotation or should it be replaced with a RotateAnimation?

I have made some buttons rotate accordingly to the device orientation using setRotation(). However, I have noticed this changes don't occur smoothly and I would like to know if there's a simple way to replace this method with a RotateAnimation. The…
2
votes
1 answer

Android: Rotate two objects(circles) onTouch with animation

Basically just want to draw two circles (one red, one blue) and make them rotate with the rotate animation. Trying for days already but without any success. Tried also to just move the animation method into the GameView class but it didn't work…
user3361146
  • 103
  • 3
  • 9
2
votes
4 answers

360 degree movement example in java

is it possible to simply make 360 degree movement in java(swing) without any game engine? all I have is this attempt: public class Game extends JPanel implements Runnable { int x = 300; int y = 500; float angle = 30; Game game; …
Pink
  • 431
  • 2
  • 9
  • 18
2
votes
1 answer

Rotate animation from centre of view not working

I want to make a rotate animation for my view but in both sides (java and xml) I cant find any way to rotate view from it's centre
2
votes
1 answer

How to get the current degree of RotateAnimation in Android?

I have a semi circle that I rotate 180 degrees. If the user presses reset during the RotateAnimation, I want to have a reset animation that goes from currentDegree back to 0. Currently the reset animation goes from 180 to 0, but this looks strange…
Adam Johns
  • 35,397
  • 25
  • 123
  • 176
2
votes
2 answers

how to rotate image around the circumference of a circle?

I'm new to this so don't blame me. I am trying to develop an android app that would make music. I am trying to make a bar that rotates over a bunch of buttons that are displayed in the form of a circle, and when it does to play the sound represented…
1
vote
2 answers

How to make image (wheel) spinning on scrolling or mouse wheel in jQuery?

If anyone remembers the old Moods of Norway website, there was a track with wheels spinning forward and backward while you were scrolling the page (horizontally). I can't achieve similar effect with a bike. This is what I have so…