mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-06-02 13:33:10 +01:00
committed by
Moxie Marlinspike
parent
6ae38d0718
commit
9ea53d7b1e
@@ -3,6 +3,7 @@ package org.thoughtcrime.securesms.components;
|
||||
import android.content.Context;
|
||||
import android.support.annotation.NonNull;
|
||||
import android.support.annotation.Nullable;
|
||||
import android.support.v4.view.animation.FastOutSlowInInterpolator;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
@@ -32,6 +33,8 @@ public class AnimatingToggle extends FrameLayout {
|
||||
super(context, attrs, defStyleAttr);
|
||||
this.outAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.animation_toggle_out);
|
||||
this.inAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.animation_toggle_in);
|
||||
this.outAnimation.setInterpolator(new FastOutSlowInInterpolator());
|
||||
this.inAnimation.setInterpolator(new FastOutSlowInInterpolator());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user