mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
29 lines
960 B
Java
29 lines
960 B
Java
|
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);
|
||
|
}
|
||
|
}
|
||
|
}
|