An animation that controls the rotation of an object. This rotation takes place in the X-Y plane.
Questions tagged [rotateanimation]
103 questions
1
vote
0 answers
Android: Layout child resets rotation after other child is clicked
I have a layout that contains two image buttons, two spaces and two text views. My activity is required to be locked in the landscape orientation, and the buttons are rotated on orientation change. This is done with RotateAnimation with code like…

Krzysztof Kansy
- 305
- 2
- 13
1
vote
2 answers
Background change effect by rotation on hover via CSS3
I am a web developer. for my client's website I need to put an effect on hover a specific div as shown in this website . when i hover on a div the background should change by rotating. how can i do this. I can do only ease effect for background…

droidev
- 7,352
- 11
- 62
- 94
1
vote
0 answers
Android Wear RotateAnimation
I'm trying to do a RotationAnimation (an ImageView) on an Android Wear.
I tested a sample on an Android Tablet and it works perfectly but the ImageView disappears on the Android Wear.
How can I do it on android Wear ?
This is the layout :

Samy Sup
- 298
- 2
- 16
1
vote
1 answer
RotateAnimation get current angle
Any tricks to get RotateAnimation current angle? I've an imageview that is rotate with RotateAnimation, imageview.getRotation() is always 0.0. Maybe it's a trick to get the rotation angle ?
Thaks

Nicu Ro
- 33
- 4
1
vote
1 answer
How to implement rotate animation ProgressDialog with asynctask
I show my rotate animation inside progressdialog before execute asynctask with this code
ProgressDialog pDialog = ProgressDialog.show(getActivity(), null, null, true, false);
pDialog.setContentView(R.layout.loading);
this is…

user2955394
- 1,063
- 4
- 17
- 34
1
vote
1 answer
Need help on rotating image view with animation on orientation change (4 side rotation) in android
i have a image view and i need to rotate(with IOS like animation) the image view on orientation change in android(portrait,landscape,reverse portrait and reverse landscape).
please advice
void rotateAndSet(int angle) {
if (currentAngle !=…

Kris
- 891
- 2
- 18
- 41
1
vote
2 answers
Android animation to rotate a image around its centre point
I am struggling with an android xml animation. I want to rotate an image anti clockwise around its central point.
Here is my xml for the animation:

Zapnologica
- 22,170
- 44
- 158
- 253
1
vote
2 answers
Rotate in hover doesn't work in chrome
I am new here, so sorry if I am being misunderstood.
I made a flip animation when user hovers a div. Works perfectly in Firefox, but not in chrome. I lost last hour trying to find solution.
HTML

fiskolin
- 1,421
- 2
- 17
- 36
1
vote
1 answer
Emotion roll from center to right using Android animation
I want my ImageView roll from center of screen to right. I use this code at the moment, but it doesn't roll the image.
final AnimationSet rollingIn = new AnimationSet(true);
Animation moving = new TranslateAnimation(Animation.RELATIVE_TO_PARENT,…

vn a
- 13
- 4
1
vote
1 answer
Android Animated Turns
I'm using the following code to make turns (left or right) in a series. So if i call it one after another ie: turn(90); turn(90); turn(-90); all it shows is the last one. I'd like to show them all and it wait until the first one is done before…

jcaruso
- 2,364
- 1
- 31
- 64
1
vote
1 answer
Does Android set Pivot method works?
I have two ImageViews one of them located on top of another and both inside a frameLayout. As far as I know whatever we add in frameLayout will sit on the left top part of screen and we can set their position by setting a padding for them, So I've…
user2604179
1
vote
1 answer
Program stopping when trying to rotate an image
I am new to android programming and am trying to rotate an image.
This is my code:
public class MainActivity extends Activity {
ImageView x;
@Override
public void onCreate(Bundle savedInstanceState) {
…

user2593562
- 116
- 7
1
vote
2 answers
Class:hover works on Firefox but doesn't work on Chrome nor IE9
Here the Problem, I want to make this text rotate on mouse hover, this code works perfectly on Firefox but not on Chrome(Version 25.0.1364.97 m) nor IE9
http://jsfiddle.net/B2u4j/1/
Hello World
CSS
.holder…
Rollyng
- 1,387
- 2
- 12
- 18
1
vote
1 answer
Android setOnClickListener after RotateAnimation
In 2.2 SDK I'm rotating a TextView and I've attached an onClickListener to display a dummy text in console, but the onClick method isn't fired. Is something wrong with my code, or there is a workaround?
public void setTextViewRotation(int angle,…

dorin
- 873
- 2
- 15
- 34
1
vote
1 answer
Android dialog rotation
I've created custom enter animation for a dialog:

Sebastian Nowak
- 5,607
- 8
- 67
- 107