ADD week 5
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package com.google.android.material.carousel;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public abstract class CarouselStrategy {
|
||||
static float getChildMaskPercentage(float f, float f2, float f3) {
|
||||
return 1.0f - ((f - f3) / (f2 - f3));
|
||||
}
|
||||
|
||||
boolean isContained() {
|
||||
return true;
|
||||
}
|
||||
|
||||
abstract KeylineState onFirstChildMeasuredWithMargins(Carousel carousel, View view);
|
||||
|
||||
boolean shouldRefreshKeylineState(Carousel carousel, int i) {
|
||||
return false;
|
||||
}
|
||||
|
||||
static int[] doubleCounts(int[] iArr) {
|
||||
int length = iArr.length;
|
||||
int[] iArr2 = new int[length];
|
||||
for (int i = 0; i < length; i++) {
|
||||
iArr2[i] = iArr[i] * 2;
|
||||
}
|
||||
return iArr2;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user