Questions tagged [android-animation]

Animations can be integrated into Android apps, either with XML in traditional View layouts or with Kotlin/Java in both traditional and Jetpack Compose layouts.

Android animations can use a few default interpolators (these specify whether the animation goes at the same speed, or, for example, speeds up or slows down), and custom ones can be created.

Android Animation Reference

5590 questions
2
votes
2 answers

How to display Button text after a delay in android

I created new custom Button class, I want to achieve, whenever user go to any activity my generic button want to expand from circle to default width. While expanding I want to hide button text for while until button animation complete. Please check…
Haneef Ansari
  • 113
  • 1
  • 3
  • 8
2
votes
1 answer

How do I disable the animation in Bottom Navigation View when icons are clicked?

I am using the default BottomView Navigation bar for my application which has 4 buttons and they have an awful shifting animation, and there doesn't seem to be a method in the compat lib. to disable it. Please help. P.s I don't want to use third…
Anubhav Malik
  • 242
  • 7
  • 13
2
votes
1 answer

New fragment view coming from behind during transition

I have two fragments in an activity. When i go from fragment A to fragment B, custom animation have been added. So that the view of fragment B slides in from the right on entry and then slides back out from right on exit. But the fragment B can…
Sunny
  • 7,444
  • 22
  • 63
  • 104
2
votes
1 answer

Set start offset for a repeating animation only for start

I want to put some delay for starting of an animation. So, when an animation is not going to repeat, we can easily use startOffset property. The thing is I have an animation which is going to repeat infinitely. But I have to start it with a delay,…
A. Badakhshan
  • 1,045
  • 7
  • 22
2
votes
0 answers

How to create silde cardview infinity with animation android

How to create silde cardview infinity with animation. like this What's library to recommended ? thanks!
ARR.s
  • 769
  • 4
  • 20
  • 39
2
votes
1 answer

How to make the Google loading spinner with TArc?

I'm considering to put a loading animation and a progress arc in a single object (like WhatsApp when loading a record), so I thought it was better to use TArc and TFloatAnimation, since I can control the StartAngle and EndAngle of the stroke. I'm…
2
votes
1 answer

TransitionManager doesn't animate color change

I've followed Nick Butcher's Material Improvements I/O 2016 talk, and at about 6:00, he starts talking about animating list items. I've implemented the feature exactly as he was doing it, and the bound changes animate correctly, but color changes…
2
votes
1 answer

How to design a view transition like this in android

I'm working on a project where I want to add a View transition like below. I have no idea where to start, can anybody help me out?
2
votes
0 answers

AnimatedVectorDrawableCompat not starting the Animation?

I am trying to implement Morphing animation using AnimatedVectorDrawableCompat class. Basically I am trying to achieve animation as Evernote App - note Edit functionality (where user press on Edit button and Back button Morphed to Tick Button). I…
Pardeep Sharma
  • 407
  • 1
  • 5
  • 20
2
votes
0 answers

Android: Distortion while applying rotation animation

I recently ran across a problem while building a toolbar in Android. The toolbar is dynamically resizable based on user preference, and contains multiple ImageButtons which must also resize with the toolbar. These buttons are, of course, children of…
2
votes
0 answers

How to import v4 animations classes?

After update support libraries I got this error: Cannot resolve symbol ValueAnimatorCompat This is my gradle dependencies: compile 'com.android.support:appcompat-v7:26.1.0' compile 'com.android.support:design:26.1.0' compile…
Artem
  • 4,569
  • 12
  • 44
  • 86
2
votes
0 answers

How can you programmatically show groups of an AnimatedVectorDrawable?

I am trying to animate groups inside my AnimatedVectorDrawable without them reseting after each is shown. The id provided is my animation for each group, but when called a second time the first group is lost. Any Ideas? …
2
votes
1 answer

How to translate a view, but keep it's original starting position

I am animating a view so that a bottom navigation bar is hidden when the keyboard appears. My issue is that I can translate away the bottom navigation bar and the main 'message area' can follow it, but at the top of the 'message area' a gap forms.…
Calco
  • 1,420
  • 1
  • 17
  • 31
2
votes
0 answers

how to animate the entry of a new character in passcode textview android?

Currently I am implementing a custom textView for passcode entry. I'm using a custom transformation to show the last number entered like so: public class PinCodePasswordTransformationMethod extends PasswordTransformationMethod { char passwordBullet…
ColonD
  • 954
  • 10
  • 28
2
votes
2 answers

Android Translate Animation Progress Callback

I am using a Translate animation (borrowed from here) as follows: TranslateAnimation a = new TranslateAnimation( Animation.ABSOLUTE,200, Animation.ABSOLUTE,200, Animation.ABSOLUTE,200,…
androidnoob
  • 345
  • 2
  • 17
1 2 3
99
100