An animation that controls the scale of an object. You can specify the point to use for the center of scaling.
Questions tagged [scaleanimation]
27 questions
6
votes
1 answer
Android - ObjectAnimator set pivot value
I want a relative layout to scale up and the bottom of the view should be fixed.
I have a relative layout -
private RelativeLayout rlOutdoorSection;
Initialized it -
rlOutdoorSection = (RelativeLayout) findViewById(R.id.rlOutdoorSection);
Created…

Anukool
- 5,301
- 8
- 29
- 41
4
votes
3 answers
Scale Animation not smooth in android on image view
I have use Scale Animation for zooming an image in my app. It's working fine zoom image level proper which we want but my issue is when zooming the image not zoom smoother.
image size is 1.4 mb.
ScaleAnimation scaleAnimation = new ScaleAnimation(1f,…

tech_android
- 719
- 1
- 7
- 18
4
votes
1 answer
Android How to achieve pulsating circle animation around image view
I am looking to achieve an animation similar to this :
https://dribbble.com/shots/1767235-Rizon-Location-animation
,and with an image view in the circle in the middle.
I understand that a scale animation would be used and I am using this on my…

Shivam Bhalla
- 1,879
- 5
- 35
- 63
4
votes
2 answers
How to scale animate a layout diagonally from bottom to top in android?
I am trying to use Scale Animation on a RelativeLayout. I want to scale the image from the left corner to the right corner i.e diagonally(left to right) from bottom to top. I have used the following line of code but I am not getting the desired…
user3509091
3
votes
1 answer
How to ScaleAnimation to a specific size
I have a view with an starting size (Width1 and Height1). I want to create an animation to change its size to the end size (Width2 and Height2). I have been reading about ScaleAnimation but I cannot understand the scaling factor.
Could you please…

Ton
- 9,235
- 15
- 59
- 103
2
votes
0 answers
scale animate from x,y to centered full screen
I'm trying to take my small image from (x,y) location, and scale it up to full screen (by screen width) and move it to the center.
Here's a visual motivation for my mission:
I have already managed to calculate the scale ratio to enlarge the image…

Yarden Cohen
- 584
- 2
- 4
- 19
2
votes
0 answers
Android view disappear after doing scale animation?
I would like to do a scale animation on an image. When I click on it, it should be scaled up and it will be scaled down after clicking it again.
However, the image will be disappeared after it scale down.
Here's my code,
private void…

Shumin Gao
- 677
- 2
- 8
- 15
2
votes
1 answer
Variant from android-autofittextview library : scaling makes strange behaviour
So to tell you exactly what's going on, let me explain the context first.
I followed this tutorial :
https://viksaaskool.wordpress.com/2014/11/16/using-auto-resize-to-fit-edittext-in-android/
which is basically a simple autoresizeEditText, based on…

NSimon
- 5,212
- 2
- 22
- 36
2
votes
1 answer
Android ScaleAnimation on a moving view
I am trying to animate a view to scale up on touch down and scale down on touch up. The following is my animation declarations:
scale_up.xml

Vadym
- 964
- 1
- 13
- 31
2
votes
1 answer
Animate(ScaleAnimation) LinearLayout when it's height changes due to add/removal of view inside it
I have a LinearLayout & i have 2 TextViews inside it. Dynamically i want to hide one TextView or i can add TextViews at runtime. My problem is when TextView disappears from LinearLayout it collapses in no time. I want to animate the…

Kailash Ahirwar
- 771
- 3
- 14
2
votes
0 answers
Custom Stretching Animation
I have an image of an arrow that I wish to animate so that I can point to something in the UI. The arrow looks like this...
And I wish to animate it so that it can stretch to look like this...
The challenge of this operation is that I cannot…

Brian
- 7,955
- 16
- 66
- 107
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
Android scale animation using incorrect coordinates
I'm trying to scale an ImageButton from 100% to 0%. That part is working but it also seems to be moving the view toward the top left corner of the screen (towards 0, 0). I don't want that I just want to scale it. Why is this also translating the…

TychoTheTaco
- 664
- 1
- 7
- 28
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
1
vote
1 answer
Is it possible to set animation pivot value based on touch event?
I have an ImageView, and I have a ScaleAnimation.
ScaleAnimation scaleAnimation =
new ScaleAnimation(1.0f, 5f, 1.0f, 5f,
ScaleAnimation.RELATIVE_TO_SELF, 0.5f,
ScaleAnimation.RELATIVE_TO_SELF, 0.30f);
…

Rohit Sharma
- 78
- 9