Alan Viverette | cd1aae0 | 2019-08-28 15:28:57 -0400 | [diff] [blame^] | 1 | // Signature format: 3.0 |
| 2 | package androidx.viewpager.widget { |
| 3 | |
| 4 | public abstract class PagerAdapter { |
| 5 | ctor public PagerAdapter(); |
| 6 | method public void destroyItem(android.view.ViewGroup, int, Object); |
| 7 | method @Deprecated public void destroyItem(android.view.View, int, Object); |
| 8 | method public void finishUpdate(android.view.ViewGroup); |
| 9 | method @Deprecated public void finishUpdate(android.view.View); |
| 10 | method public abstract int getCount(); |
| 11 | method public int getItemPosition(Object); |
| 12 | method public CharSequence? getPageTitle(int); |
| 13 | method public float getPageWidth(int); |
| 14 | method public Object instantiateItem(android.view.ViewGroup, int); |
| 15 | method @Deprecated public Object instantiateItem(android.view.View, int); |
| 16 | method public abstract boolean isViewFromObject(android.view.View, Object); |
| 17 | method public void notifyDataSetChanged(); |
| 18 | method public void registerDataSetObserver(android.database.DataSetObserver); |
| 19 | method public void restoreState(android.os.Parcelable?, ClassLoader?); |
| 20 | method public android.os.Parcelable? saveState(); |
| 21 | method public void setPrimaryItem(android.view.ViewGroup, int, Object); |
| 22 | method @Deprecated public void setPrimaryItem(android.view.View, int, Object); |
| 23 | method public void startUpdate(android.view.ViewGroup); |
| 24 | method @Deprecated public void startUpdate(android.view.View); |
| 25 | method public void unregisterDataSetObserver(android.database.DataSetObserver); |
| 26 | field public static final int POSITION_NONE = -2; // 0xfffffffe |
| 27 | field public static final int POSITION_UNCHANGED = -1; // 0xffffffff |
| 28 | } |
| 29 | |
| 30 | public class PagerTabStrip extends androidx.viewpager.widget.PagerTitleStrip { |
| 31 | ctor public PagerTabStrip(android.content.Context); |
| 32 | ctor public PagerTabStrip(android.content.Context, android.util.AttributeSet?); |
| 33 | method public boolean getDrawFullUnderline(); |
| 34 | method @ColorInt public int getTabIndicatorColor(); |
| 35 | method public void setBackgroundDrawable(android.graphics.drawable.Drawable!); |
| 36 | method public void setDrawFullUnderline(boolean); |
| 37 | method public void setTabIndicatorColor(@ColorInt int); |
| 38 | method public void setTabIndicatorColorResource(@ColorRes int); |
| 39 | } |
| 40 | |
| 41 | @androidx.viewpager.widget.ViewPager.DecorView public class PagerTitleStrip extends android.view.ViewGroup { |
| 42 | ctor public PagerTitleStrip(android.content.Context); |
| 43 | ctor public PagerTitleStrip(android.content.Context, android.util.AttributeSet?); |
| 44 | method public int getTextSpacing(); |
| 45 | method public void setGravity(int); |
| 46 | method public void setNonPrimaryAlpha(@FloatRange(from=0.0, to=1.0) float); |
| 47 | method public void setTextColor(@ColorInt int); |
| 48 | method public void setTextSize(int, float); |
| 49 | method public void setTextSpacing(int); |
| 50 | } |
| 51 | |
| 52 | public class ViewPager extends android.view.ViewGroup { |
| 53 | ctor public ViewPager(android.content.Context); |
| 54 | ctor public ViewPager(android.content.Context, android.util.AttributeSet?); |
| 55 | method public void addOnAdapterChangeListener(androidx.viewpager.widget.ViewPager.OnAdapterChangeListener); |
| 56 | method public void addOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener); |
| 57 | method public boolean arrowScroll(int); |
| 58 | method public boolean beginFakeDrag(); |
| 59 | method protected boolean canScroll(android.view.View!, boolean, int, int, int); |
| 60 | method public void clearOnPageChangeListeners(); |
| 61 | method public void endFakeDrag(); |
| 62 | method public boolean executeKeyEvent(android.view.KeyEvent); |
| 63 | method public void fakeDragBy(float); |
| 64 | method public androidx.viewpager.widget.PagerAdapter? getAdapter(); |
| 65 | method public int getCurrentItem(); |
| 66 | method public int getOffscreenPageLimit(); |
| 67 | method public int getPageMargin(); |
| 68 | method public boolean isDragInGutterEnabled(); |
| 69 | method public boolean isFakeDragging(); |
| 70 | method @CallSuper protected void onPageScrolled(int, float, int); |
| 71 | method public void onRestoreInstanceState(android.os.Parcelable!); |
| 72 | method public android.os.Parcelable! onSaveInstanceState(); |
| 73 | method public void removeOnAdapterChangeListener(androidx.viewpager.widget.ViewPager.OnAdapterChangeListener); |
| 74 | method public void removeOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener); |
| 75 | method public void setAdapter(androidx.viewpager.widget.PagerAdapter?); |
| 76 | method public void setCurrentItem(int); |
| 77 | method public void setCurrentItem(int, boolean); |
| 78 | method public void setDragInGutterEnabled(boolean); |
| 79 | method public void setOffscreenPageLimit(int); |
| 80 | method @Deprecated public void setOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener!); |
| 81 | method public void setPageMargin(int); |
| 82 | method public void setPageMarginDrawable(android.graphics.drawable.Drawable?); |
| 83 | method public void setPageMarginDrawable(@DrawableRes int); |
| 84 | method public void setPageTransformer(boolean, androidx.viewpager.widget.ViewPager.PageTransformer?); |
| 85 | method public void setPageTransformer(boolean, androidx.viewpager.widget.ViewPager.PageTransformer?, int); |
| 86 | field public static final int SCROLL_STATE_DRAGGING = 1; // 0x1 |
| 87 | field public static final int SCROLL_STATE_IDLE = 0; // 0x0 |
| 88 | field public static final int SCROLL_STATE_SETTLING = 2; // 0x2 |
| 89 | } |
| 90 | |
| 91 | @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 { |
| 92 | } |
| 93 | |
| 94 | public static class ViewPager.LayoutParams extends android.view.ViewGroup.LayoutParams { |
| 95 | ctor public ViewPager.LayoutParams(); |
| 96 | ctor public ViewPager.LayoutParams(android.content.Context!, android.util.AttributeSet!); |
| 97 | field public int gravity; |
| 98 | field public boolean isDecor; |
| 99 | } |
| 100 | |
| 101 | public static interface ViewPager.OnAdapterChangeListener { |
| 102 | method public void onAdapterChanged(androidx.viewpager.widget.ViewPager, androidx.viewpager.widget.PagerAdapter?, androidx.viewpager.widget.PagerAdapter?); |
| 103 | } |
| 104 | |
| 105 | public static interface ViewPager.OnPageChangeListener { |
| 106 | method public void onPageScrollStateChanged(int); |
| 107 | method public void onPageScrolled(int, float, @Px int); |
| 108 | method public void onPageSelected(int); |
| 109 | } |
| 110 | |
| 111 | public static interface ViewPager.PageTransformer { |
| 112 | method public void transformPage(android.view.View, float); |
| 113 | } |
| 114 | |
| 115 | public static class ViewPager.SavedState extends androidx.customview.view.AbsSavedState { |
| 116 | ctor public ViewPager.SavedState(android.os.Parcelable); |
| 117 | field public static final android.os.Parcelable.Creator<androidx.viewpager.widget.ViewPager.SavedState!>! CREATOR; |
| 118 | } |
| 119 | |
| 120 | public static class ViewPager.SimpleOnPageChangeListener implements androidx.viewpager.widget.ViewPager.OnPageChangeListener { |
| 121 | ctor public ViewPager.SimpleOnPageChangeListener(); |
| 122 | method public void onPageScrollStateChanged(int); |
| 123 | method public void onPageScrolled(int, float, int); |
| 124 | method public void onPageSelected(int); |
| 125 | } |
| 126 | |
| 127 | } |
| 128 | |