fix gingerbread view issues

Closes #4085
// FREEBIE
This commit is contained in:
Jake McGinty
2015-09-17 17:53:09 -07:00
committed by Moxie Marlinspike
parent 6ae38d0718
commit 9ea53d7b1e
9 changed files with 55 additions and 33 deletions
@@ -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