blob: 767e8cfd1ed7f6f6b3b5101c02594f705d1e9d8a [file] [log] [blame]
// Signature format: 3.0
package androidx.viewpager.widget {
public abstract class PagerAdapter {
ctor public PagerAdapter();
method public void destroyItem(android.view.ViewGroup, int, Object);
method @Deprecated public void destroyItem(android.view.View, int, Object);
method public void finishUpdate(android.view.ViewGroup);
method @Deprecated public void finishUpdate(android.view.View);
method public abstract int getCount();
method public int getItemPosition(Object);
method public CharSequence? getPageTitle(int);
method public float getPageWidth(int);
method public Object instantiateItem(android.view.ViewGroup, int);
method @Deprecated public Object instantiateItem(android.view.View, int);
method public abstract boolean isViewFromObject(android.view.View, Object);
method public void notifyDataSetChanged();
method public void registerDataSetObserver(android.database.DataSetObserver);
method public void restoreState(android.os.Parcelable?, ClassLoader?);
method public android.os.Parcelable? saveState();
method public void setPrimaryItem(android.view.ViewGroup, int, Object);
method @Deprecated public void setPrimaryItem(android.view.View, int, Object);
method public void startUpdate(android.view.ViewGroup);
method @Deprecated public void startUpdate(android.view.View);
method public void unregisterDataSetObserver(android.database.DataSetObserver);
field public static final int POSITION_NONE = -2; // 0xfffffffe
field public static final int POSITION_UNCHANGED = -1; // 0xffffffff
}
public class PagerTabStrip extends androidx.viewpager.widget.PagerTitleStrip {
ctor public PagerTabStrip(android.content.Context);
ctor public PagerTabStrip(android.content.Context, android.util.AttributeSet?);
method public boolean getDrawFullUnderline();
method @ColorInt public int getTabIndicatorColor();
method public void setBackgroundDrawable(android.graphics.drawable.Drawable!);
method public void setDrawFullUnderline(boolean);
method public void setTabIndicatorColor(@ColorInt int);
method public void setTabIndicatorColorResource(@ColorRes int);
}
@androidx.viewpager.widget.ViewPager.DecorView public class PagerTitleStrip extends android.view.ViewGroup {
ctor public PagerTitleStrip(android.content.Context);
ctor public PagerTitleStrip(android.content.Context, android.util.AttributeSet?);
method public int getTextSpacing();
method public void setGravity(int);
method public void setNonPrimaryAlpha(@FloatRange(from=0.0, to=1.0) float);
method public void setTextColor(@ColorInt int);
method public void setTextSize(int, float);
method public void setTextSpacing(int);
}
public class ViewPager extends android.view.ViewGroup {
ctor public ViewPager(android.content.Context);
ctor public ViewPager(android.content.Context, android.util.AttributeSet?);
method public void addOnAdapterChangeListener(androidx.viewpager.widget.ViewPager.OnAdapterChangeListener);
method public void addOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener);
method public boolean arrowScroll(int);
method public boolean beginFakeDrag();
method protected boolean canScroll(android.view.View!, boolean, int, int, int);
method public void clearOnPageChangeListeners();
method public void endFakeDrag();
method public boolean executeKeyEvent(android.view.KeyEvent);
method public void fakeDragBy(float);
method public androidx.viewpager.widget.PagerAdapter? getAdapter();
method public int getCurrentItem();
method public int getOffscreenPageLimit();
method public int getPageMargin();
method public boolean isDragInGutterEnabled();
method public boolean isFakeDragging();
method @CallSuper protected void onPageScrolled(int, float, int);
method public void onRestoreInstanceState(android.os.Parcelable!);
method public android.os.Parcelable! onSaveInstanceState();
method public void removeOnAdapterChangeListener(androidx.viewpager.widget.ViewPager.OnAdapterChangeListener);
method public void removeOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener);
method public void setAdapter(androidx.viewpager.widget.PagerAdapter?);
method public void setCurrentItem(int);
method public void setCurrentItem(int, boolean);
method public void setDragInGutterEnabled(boolean);
method public void setOffscreenPageLimit(int);
method @Deprecated public void setOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener!);
method public void setPageMargin(int);
method public void setPageMarginDrawable(android.graphics.drawable.Drawable?);
method public void setPageMarginDrawable(@DrawableRes int);
method public void setPageTransformer(boolean, androidx.viewpager.widget.ViewPager.PageTransformer?);
method public void setPageTransformer(boolean, androidx.viewpager.widget.ViewPager.PageTransformer?, int);
field public static final int SCROLL_STATE_DRAGGING = 1; // 0x1
field public static final int SCROLL_STATE_IDLE = 0; // 0x0
field public static final int SCROLL_STATE_SETTLING = 2; // 0x2
}
@java.lang.annotation.Inherited @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.RUNTIME) @java.lang.annotation.Target(java.lang.annotation.ElementType.TYPE) public static @interface ViewPager.DecorView {
}
public static class ViewPager.LayoutParams extends android.view.ViewGroup.LayoutParams {
ctor public ViewPager.LayoutParams();
ctor public ViewPager.LayoutParams(android.content.Context!, android.util.AttributeSet!);
field public int gravity;
field public boolean isDecor;
}
public static interface ViewPager.OnAdapterChangeListener {
method public void onAdapterChanged(androidx.viewpager.widget.ViewPager, androidx.viewpager.widget.PagerAdapter?, androidx.viewpager.widget.PagerAdapter?);
}
public static interface ViewPager.OnPageChangeListener {
method public void onPageScrollStateChanged(int);
method public void onPageScrolled(int, float, @Px int);
method public void onPageSelected(int);
}
public static interface ViewPager.PageTransformer {
method public void transformPage(android.view.View, float);
}
public static class ViewPager.SavedState extends androidx.customview.view.AbsSavedState {
ctor public ViewPager.SavedState(android.os.Parcelable);
field public static final android.os.Parcelable.Creator<androidx.viewpager.widget.ViewPager.SavedState!>! CREATOR;
}
public static class ViewPager.SimpleOnPageChangeListener implements androidx.viewpager.widget.ViewPager.OnPageChangeListener {
ctor public ViewPager.SimpleOnPageChangeListener();
method public void onPageScrollStateChanged(int);
method public void onPageScrolled(int, float, int);
method public void onPageSelected(int);
}
}