ADD week 5
This commit is contained in:
		| @@ -0,0 +1,73 @@ | ||||
| package com.google.android.material.transition; | ||||
|  | ||||
| import android.animation.Animator; | ||||
| import android.view.View; | ||||
| import android.view.ViewGroup; | ||||
| import androidx.transition.TransitionValues; | ||||
|  | ||||
| /* loaded from: classes.dex */ | ||||
| public final class MaterialElevationScale extends MaterialVisibility<ScaleProvider> { | ||||
|     private static final float DEFAULT_SCALE = 0.85f; | ||||
|     private final boolean growing; | ||||
|  | ||||
|     public boolean isGrowing() { | ||||
|         return this.growing; | ||||
|     } | ||||
|  | ||||
|     @Override // com.google.android.material.transition.MaterialVisibility | ||||
|     public /* bridge */ /* synthetic */ void addAdditionalAnimatorProvider(VisibilityAnimatorProvider visibilityAnimatorProvider) { | ||||
|         super.addAdditionalAnimatorProvider(visibilityAnimatorProvider); | ||||
|     } | ||||
|  | ||||
|     @Override // com.google.android.material.transition.MaterialVisibility | ||||
|     public /* bridge */ /* synthetic */ void clearAdditionalAnimatorProvider() { | ||||
|         super.clearAdditionalAnimatorProvider(); | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Type inference failed for: r0v0, types: [com.google.android.material.transition.ScaleProvider, com.google.android.material.transition.VisibilityAnimatorProvider] */ | ||||
|     @Override // com.google.android.material.transition.MaterialVisibility | ||||
|     public /* bridge */ /* synthetic */ ScaleProvider getPrimaryAnimatorProvider() { | ||||
|         return super.getPrimaryAnimatorProvider(); | ||||
|     } | ||||
|  | ||||
|     @Override // com.google.android.material.transition.MaterialVisibility | ||||
|     public /* bridge */ /* synthetic */ VisibilityAnimatorProvider getSecondaryAnimatorProvider() { | ||||
|         return super.getSecondaryAnimatorProvider(); | ||||
|     } | ||||
|  | ||||
|     @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(VisibilityAnimatorProvider visibilityAnimatorProvider) { | ||||
|         return super.removeAdditionalAnimatorProvider(visibilityAnimatorProvider); | ||||
|     } | ||||
|  | ||||
|     @Override // com.google.android.material.transition.MaterialVisibility | ||||
|     public /* bridge */ /* synthetic */ void setSecondaryAnimatorProvider(VisibilityAnimatorProvider visibilityAnimatorProvider) { | ||||
|         super.setSecondaryAnimatorProvider(visibilityAnimatorProvider); | ||||
|     } | ||||
|  | ||||
|     public MaterialElevationScale(boolean z) { | ||||
|         super(createPrimaryAnimatorProvider(z), createSecondaryAnimatorProvider()); | ||||
|         this.growing = z; | ||||
|     } | ||||
|  | ||||
|     private static ScaleProvider createPrimaryAnimatorProvider(boolean z) { | ||||
|         ScaleProvider scaleProvider = new ScaleProvider(z); | ||||
|         scaleProvider.setOutgoingEndScale(DEFAULT_SCALE); | ||||
|         scaleProvider.setIncomingStartScale(DEFAULT_SCALE); | ||||
|         return scaleProvider; | ||||
|     } | ||||
|  | ||||
|     private static VisibilityAnimatorProvider createSecondaryAnimatorProvider() { | ||||
|         return new FadeProvider(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user