mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-19 04:13:18 +01:00
97 lines
4.4 KiB
Java
97 lines
4.4 KiB
Java
package com.google.android.material.transition;
|
|
|
|
import android.animation.Animator;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import androidx.annotation.AttrRes;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.transition.TransitionValues;
|
|
import com.google.android.material.R;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
public final class MaterialFadeThrough extends MaterialVisibility<FadeThroughProvider> {
|
|
private static final float DEFAULT_START_SCALE = 0.92f;
|
|
|
|
@AttrRes
|
|
private static final int DEFAULT_THEMED_DURATION_ATTR = R.attr.motionDurationLong1;
|
|
|
|
@AttrRes
|
|
private static final int DEFAULT_THEMED_EASING_ATTR = R.attr.motionEasingEmphasizedInterpolator;
|
|
|
|
public MaterialFadeThrough() {
|
|
super(createPrimaryAnimatorProvider(), createSecondaryAnimatorProvider());
|
|
}
|
|
|
|
private static FadeThroughProvider createPrimaryAnimatorProvider() {
|
|
return new FadeThroughProvider();
|
|
}
|
|
|
|
private static VisibilityAnimatorProvider createSecondaryAnimatorProvider() {
|
|
ScaleProvider scaleProvider = new ScaleProvider();
|
|
scaleProvider.setScaleOnDisappear(false);
|
|
scaleProvider.setIncomingStartScale(0.92f);
|
|
return scaleProvider;
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
public /* bridge */ /* synthetic */ void addAdditionalAnimatorProvider(@NonNull VisibilityAnimatorProvider visibilityAnimatorProvider) {
|
|
super.addAdditionalAnimatorProvider(visibilityAnimatorProvider);
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
public /* bridge */ /* synthetic */ void clearAdditionalAnimatorProvider() {
|
|
super.clearAdditionalAnimatorProvider();
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
@AttrRes
|
|
public int getDurationThemeAttrResId(boolean z) {
|
|
return DEFAULT_THEMED_DURATION_ATTR;
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
@AttrRes
|
|
public int getEasingThemeAttrResId(boolean z) {
|
|
return DEFAULT_THEMED_EASING_ATTR;
|
|
}
|
|
|
|
/* JADX WARN: Type inference failed for: r0v1, types: [com.google.android.material.transition.FadeThroughProvider, com.google.android.material.transition.VisibilityAnimatorProvider] */
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
@NonNull
|
|
public /* bridge */ /* synthetic */ FadeThroughProvider getPrimaryAnimatorProvider() {
|
|
return super.getPrimaryAnimatorProvider();
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
@Nullable
|
|
public /* bridge */ /* synthetic */ VisibilityAnimatorProvider getSecondaryAnimatorProvider() {
|
|
return super.getSecondaryAnimatorProvider();
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility, androidx.transition.Transition
|
|
public /* bridge */ /* synthetic */ boolean isSeekingSupported() {
|
|
return super.isSeekingSupported();
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility, androidx.transition.Visibility
|
|
public /* bridge */ /* synthetic */ Animator onAppear(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) {
|
|
return super.onAppear(viewGroup, view, transitionValues, transitionValues2);
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility, androidx.transition.Visibility
|
|
public /* bridge */ /* synthetic */ Animator onDisappear(ViewGroup viewGroup, View view, TransitionValues transitionValues, TransitionValues transitionValues2) {
|
|
return super.onDisappear(viewGroup, view, transitionValues, transitionValues2);
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
public /* bridge */ /* synthetic */ boolean removeAdditionalAnimatorProvider(@NonNull VisibilityAnimatorProvider visibilityAnimatorProvider) {
|
|
return super.removeAdditionalAnimatorProvider(visibilityAnimatorProvider);
|
|
}
|
|
|
|
@Override // com.google.android.material.transition.MaterialVisibility
|
|
public /* bridge */ /* synthetic */ void setSecondaryAnimatorProvider(@Nullable VisibilityAnimatorProvider visibilityAnimatorProvider) {
|
|
super.setSecondaryAnimatorProvider(visibilityAnimatorProvider);
|
|
}
|
|
}
|