Rabbit-R1/original r1/java/sources/androidx/viewpager2/widget/CompositePageTransformer.java

29 lines
960 B
Java
Raw Normal View History

2024-05-21 16:08:36 -05:00
package androidx.viewpager2.widget;
import android.view.View;
import androidx.viewpager2.widget.ViewPager2;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/* loaded from: classes2.dex */
public final class CompositePageTransformer implements ViewPager2.PageTransformer {
private final List<ViewPager2.PageTransformer> mTransformers = new ArrayList();
public void addTransformer(ViewPager2.PageTransformer pageTransformer) {
this.mTransformers.add(pageTransformer);
}
public void removeTransformer(ViewPager2.PageTransformer pageTransformer) {
this.mTransformers.remove(pageTransformer);
}
@Override // androidx.viewpager2.widget.ViewPager2.PageTransformer
public void transformPage(View view, float f) {
Iterator<ViewPager2.PageTransformer> it = this.mTransformers.iterator();
while (it.hasNext()) {
it.next().transformPage(view, f);
}
}
}