Questions tagged [rotateanimation]

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

103 questions
1
vote
1 answer

Keyframe animation has delay after every animation, how to stop it?

I trying to spin an image using CSS keyframes to rotate(360deg). I used keyframe, but every time when animation is complete there is some kind of delay. Also I tried to set 100% { -webkit-transform: rotate(359deg) }, but it didn't work out, I still…
FoxKllD
  • 971
  • 3
  • 13
  • 22
1
vote
2 answers

Prevent RotateAnimation from resetting when cancelled

I have a simple RotateAnimation to animate an ImageView indefinitely until I stop it. I have the animation set up as follows: Animation spin = new RotateAnimation(0.0f, 1800.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF,…
Brian
  • 7,955
  • 16
  • 66
  • 107
1
vote
1 answer

Android RotateAnimation, how to perform more rotations?

I have to rotate an ImageView on a Button click. At the first click it have to rotate to right, at the second to left etc. The problem is that when I try to rotate for second time the "just rotated" image, the rotation start from original point and…
crbin1
  • 2,219
  • 3
  • 22
  • 29
1
vote
3 answers

Android: Running thread preventing animation from starting

I currently have an Android activity which manages some locally-stored RSS feeds. In this activity, these feeds are updated in their own thread via a private class. I'm also trying to include an "updating" icon that rotates with a RotateAnimation…
Michael Dodd
  • 10,102
  • 12
  • 51
  • 64
1
vote
0 answers

Bug in Android rotated TextView?

Define a TextView element like this:
Karl H.
  • 11
  • 2
1
vote
1 answer

How to control an animation via touch

I'm creating an app that uses a disk to browse files and such, like this: http://dl.dropbox.com/u/8051037/disk_ab1.png I want to make it be able to spin as the user turns it, and I know I need to use a RotateAnimation, but I can't figure out how to…
c0dege3k
  • 67
  • 1
  • 10
1
vote
1 answer

Car animation rotating wheels

I am working in an app that shows different cars and the user needs to choose one. When you press on next the car moves out of the screen and the new one comes in. My resources are: Car's body Car's wheel (I need them to be separated because when…
Macarse
  • 91,829
  • 44
  • 175
  • 230
1
vote
0 answers

android scale and rotate animations are not smooth

I am working on a new application, and in the main window I present some animations. The problem is that the animations are not smooth.(The newer android version it is the animations get less smooth) Here is the xml code:
Raf
  • 41
  • 4
1
vote
2 answers

Rotate a image 45 degree and come back to the same position on hover

On hover I am rotating a image to 45 degree and hover off it will come to original position. What I want is I want to rotate and come back to original position on one hover itself. I tried in jquery, But something is wrong here. Html Code:
Shanthi
  • 686
  • 3
  • 11
  • 22
1
vote
4 answers

Rotate TextView without rotating any text

I have TextView which is rotating, but I want to rotate only the background of TextView not a text, I tried to put TextView inside the LinearLayout but still it is rotating with text, so how can I solve this? My xml code is below:
user5418227
1
vote
2 answers

Rotation of an .obj model using glRotatef

I try to rotate a .obj 3d model around its own axis using glRotatef. But it's not working as I wish. Code public void onDrawFrame(GL10 gl) { gl.glClear(GL10.GL_COLOR_BUFFER_BIT | GL10.GL_DEPTH_BUFFER_BIT); …
Charbo
  • 11
  • 2
1
vote
1 answer

Is it possible to create a simple animation just with translation and rotation in libGDX?

I'm trying to develop a very simple game using libGDX with boxes (so 3D game) moving and rotating. I have almost everything ready, but I'm not able to animate my boxes. I mean, when I touch the screen, I'd like my cube to move to the right by…
Alex_ES
  • 205
  • 2
  • 15
1
vote
1 answer

How to rotate an image in Android and stop it randomly on button pressed

im trying to make a simple wheel of fortune in my android application. This will be a rounded image with person names. The image will start rotating(arround its center) when the button below it is pressed. The rotation needs to be stopped after a…
1
vote
1 answer

How to detect the device orientation with SensorEventListener?

I would like to detect the device screen orientation by implementing the SensorEventListener, because its current screen orientation is set to portrait by default. I need to do this, because my layout includes some buttons that should rotate…
1
vote
4 answers

Rotate and scale image at same time

I have this code and I want to rotate and scale an ImageView at the same time: public class LayoutPunteggio extends RelativeLayout { TextView ok; LayoutInflater inflater; RotateAnimation rotateAnimation1; public LayoutPunteggio(Context context)…
LolloAAA
  • 112
  • 10