Questions tagged [scaleanimation]

An animation that controls the scale of an object. You can specify the point to use for the center of scaling.

27 questions
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 !=…
1
vote
1 answer

scaleanimation of buttons individually

I am new to android programming What I am trying to do is scale the buttons one by one across my row. But what is happening is they all scale at the same time. for(int xcnt = 1; xcnt < 9; ){ RelativeLayout box =…
1
vote
1 answer

ScaleAnimation Large to Small

So the following animation works as expected: Animation scaleUp = new ScaleAnimation(0, 1, 0, 1, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); scaleUp.setDuration(1000); Sadly, this one doesn't: Animation scaleDown = new…
JRad the Bad
  • 511
  • 5
  • 25
0
votes
0 answers

android scaleanimation with custom Interpolator make easing effect

I created ScaleAnimation and added my custom Interpolator.i try to recieve slide animaton right to left.this is a my source public class HesitateInterpolator implements Interpolator { public HesitateInterpolator() {} public float…
0
votes
2 answers

View pager scale animation - images one after another

I am using Viewpager to implement walkthrough, there is one unique part to it. Here is the image of it. There are 3 images basically we wish to display 1 by 1. The unique part is that, other image are behind the image. I am not having idea how can i…
Scorpion
  • 6,831
  • 16
  • 75
  • 123
0
votes
1 answer

Android ScaleAnimation not centre on screen

I'm running into a bit of a problem when pragmatically setting a Scale animation on an ImageView. Basically I have and Image view set center H/V, but when I apply the animation it off sets it:(...Iv read about pivot x/y being set to 50% but it wont…
user3024760
  • 176
  • 2
  • 13
0
votes
1 answer

Animation on textviews placed inside a linear layout

I need to implement an animation on text views which are placed inside the layout, My requirement is, I need to show Ist three text views on the screen "Title1(left of the screen) Title2(center) Title3(right of the screen)". when user click on…
ranjith
  • 4,526
  • 5
  • 27
  • 31
0
votes
1 answer

ScaleAnimation not behave the same in two textviews

I have 3 TextView components that represent 3 different bars. I have created a scale animation so the percentage in each bar will grow from bottom of the container to the height of the TextView (each text has different size according to the…
Shalom Melamed
  • 299
  • 1
  • 4
  • 13
0
votes
1 answer

Pinch-Zoom Out does nothing, In makes screen disappear

I have to be missing something obvious, since everyone on the planet seems to be able to get the whole pinch-zoom thing to work. The main difference is most folks seem to be zooming on images, whereas I've a GridLayout…
ssdscott
  • 683
  • 6
  • 12
0
votes
1 answer

Scale Animation Reset Position

I have three animations like scale, translate and scale. I play those animations in order. First two is working fine but last scale animation reset the position of view to original. If I remove last scale animation, it's working fine the view stay…
onur taskin
  • 929
  • 1
  • 14
  • 33
0
votes
1 answer

Scaling a right aligned layout doesn't work as expected

I have a RelativeLayout with a ImageView inside it, it is aligned to the right of the screen with android:layout_alignParentRight="true" I then apply an animation to the layout, that will scale it to twice it size (on X-axis), but for some reason…
dac2009
  • 3,521
  • 1
  • 22
  • 22
-2
votes
1 answer

How create ScaleAnimation in canvas?

How create ScaleAnimation in canvas? I have several sprites to my canvas and i want to apply ScaleAnimation. My code: public void onDraw(Canvas canvas){ ScaleAnimation scale = new ScaleAnimation(0, 2, 0, 2); scale.setInterpolator(new…
user1854307
  • 580
  • 4
  • 8
  • 21
1
2