Questions tagged [rotateanimation]

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

103 questions
0
votes
0 answers

Draw pie chart and rotate it

Write an application with a pie chart control (look at the picture below). The pie chart can be rotated in all directions using mouse, colors are filled randomly, number of sections can vary. No any 3D library can be used for drawing. here is my…
Vahe Akhsakhalyan
  • 2,140
  • 3
  • 24
  • 38
0
votes
2 answers

android smooth rotation using SimpleOnGestureListener

I have circle which I want to rotate. I am using SimpleOnGestureListener to handle gestures, especially onScroll method. @Override public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) { …
Volodymyr
  • 6,393
  • 4
  • 53
  • 84
0
votes
2 answers

Android - RotateAnimation onClick button restart itself

this is the java code to rotate an image when click on button. Image rotate it's perfect but if I click button again when rotation is not ended the animation restart itself, not end the animation. How can I wait the end of the animation? I found…
user52252
  • 43
  • 1
  • 5
0
votes
1 answer

Cocos2d: sub-subclass of CCSprite would not rotate

running the following code only r and entity would rotate but enemyEntity wouldn't. I added a call in the update method of rotateBy and run rotateBy only on enemyEntity and it would call it and changing the angle but not displaying the effect. I…
mm24
  • 9,280
  • 12
  • 75
  • 170
0
votes
2 answers

ImageView is not visible

I have two ImageView items in FrameLayout: imageView1 and imageView2. imageView1 is visible and imageView2 is positioned out of screen when activity starts. Then I rotate FrameLayout on some user event using RotateAnimation so imageView2 should…
Pavlo Viazovskyy
  • 927
  • 5
  • 12
0
votes
1 answer

Layout position after RotateAnimation

I'm using RotateAnimation to rotate my FrameLayout with three ImageView's in it. But after the rotation the layout with its child views return to the start position that it has before animation. How can I make it to stay rotated after the animation?
Pavlo Viazovskyy
  • 927
  • 5
  • 12
0
votes
1 answer

android compass rotateanimation

I'm making a compass that points to a user defined location. I'm using the rotateanimation to rotate the needle. When the needle points in the direction of the phone I know the phone is pointing in the direction I want. However, I wanted the…
mgalal
  • 427
  • 12
  • 24
0
votes
1 answer

Android RotateAnimation bug

I have a RotateAnimation attached to an ImageButton which upon click rotates it and using OnAnimationEnd starts a new Activity. Problem is its not working. After I close my application and come back, I am inside the new Activity(..) and when I go…
jmishra
  • 2,086
  • 2
  • 24
  • 38
0
votes
2 answers

RotateAnimation does not wait for the button to rotate before launching Activity

I have an ImageButton in android which rotates when clicked. The issue is it does not finish rotating when the user taps it and proceeds to the new Activity on the next line. I have tried Thread.sleep(..) and wait(..) but putting RotateAnimation(..)…
jmishra
  • 2,086
  • 2
  • 24
  • 38
0
votes
1 answer

Android: Trouble Rotating a bitmap on orientation sensor Y axis (pitch)

Hello i am in desperate need of help on this i have an image of a steering and i want to rotate it when the phone is tilted left or right. My app is in landscape mode. You should see the code below. The problem is that the bitmap does not rotate and…
0
votes
1 answer

RotateAnimation.setFillAfter(true) and .setFillEnabled(true) does not work

I'm trying to rotate 3 imageViews with a rotateAnimation. I calculate the degrees to rotate every 30ms. If the angle changed, I create the rotateAnimation: rpmAnim=new RotateAnimation((float)Rpmcurrentdegree, (float)Rpmdegree,…
5w4rley
  • 353
  • 3
  • 15
-2
votes
1 answer

Rotate custom view in android

I am trying to rotate an image. Rotation is perfectly working but when I get that rotated image back getting some blank space. What should I do for remove that blank space? I have tried this code: public static Bitmap RotateBitmap(Bitmap source,…
-2
votes
2 answers

Android fadeAnimation works partially

I'm trying to make an animation on a layout that has been previously rotated using RotateAnimation. The animation i want to do are fadeIn and FadeOut depending of the situation aLayout = (LinearLayout) _context.findViewById(R.layout.layoutId); …
1 2 3 4 5 6
7