what-the-bank/sources/o/iIt.java

26 lines
1.1 KiB
Java

package o;
import android.animation.ObjectAnimator;
import android.animation.StateListAnimator;
import android.view.View;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import o.C17052tZT;
/* loaded from: classes2.dex */
public final class iIt {
public static final int[] b = {android.R.attr.stateListAnimator};
iIt() {
}
public static void c(View view, float f) {
int integer = view.getResources().getInteger(C17052tZT.saX.app_bar_elevation_anim_duration);
StateListAnimator stateListAnimator = new StateListAnimator();
long j = integer;
stateListAnimator.addState(new int[]{android.R.attr.state_enabled, C17052tZT.IeS.state_liftable, -C17052tZT.IeS.state_lifted}, ObjectAnimator.ofFloat(view, "elevation", BitmapDescriptorFactory.HUE_RED).setDuration(j));
stateListAnimator.addState(new int[]{android.R.attr.state_enabled}, ObjectAnimator.ofFloat(view, "elevation", f).setDuration(j));
stateListAnimator.addState(new int[0], ObjectAnimator.ofFloat(view, "elevation", BitmapDescriptorFactory.HUE_RED).setDuration(0L));
view.setStateListAnimator(stateListAnimator);
}
}