[go: nahoru, domu]

blob: e8231bd336d3db9d64572a31cdeb85f68cbac41f [file] [log] [blame]
Aurimas Liutikas3aa5a202020-10-05 09:42:14 -07001// Signature format: 4.0
Alan Viverettecd1aae02019-08-28 15:28:57 -04002package 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();
George Mount787bc5e2021-02-25 22:41:59 +000066 method public int getEdgeEffectType();
Alan Viverettecd1aae02019-08-28 15:28:57 -040067 method public int getOffscreenPageLimit();
68 method public int getPageMargin();
69 method public boolean isDragInGutterEnabled();
70 method public boolean isFakeDragging();
71 method @CallSuper protected void onPageScrolled(int, float, int);
72 method public void onRestoreInstanceState(android.os.Parcelable!);
73 method public android.os.Parcelable! onSaveInstanceState();
74 method public void removeOnAdapterChangeListener(androidx.viewpager.widget.ViewPager.OnAdapterChangeListener);
75 method public void removeOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener);
76 method public void setAdapter(androidx.viewpager.widget.PagerAdapter?);
77 method public void setCurrentItem(int);
78 method public void setCurrentItem(int, boolean);
79 method public void setDragInGutterEnabled(boolean);
George Mount787bc5e2021-02-25 22:41:59 +000080 method public void setEdgeEffectType(int);
Alan Viverettecd1aae02019-08-28 15:28:57 -040081 method public void setOffscreenPageLimit(int);
82 method @Deprecated public void setOnPageChangeListener(androidx.viewpager.widget.ViewPager.OnPageChangeListener!);
83 method public void setPageMargin(int);
84 method public void setPageMarginDrawable(android.graphics.drawable.Drawable?);
85 method public void setPageMarginDrawable(@DrawableRes int);
86 method public void setPageTransformer(boolean, androidx.viewpager.widget.ViewPager.PageTransformer?);
87 method public void setPageTransformer(boolean, androidx.viewpager.widget.ViewPager.PageTransformer?, int);
88 field public static final int SCROLL_STATE_DRAGGING = 1; // 0x1
89 field public static final int SCROLL_STATE_IDLE = 0; // 0x0
90 field public static final int SCROLL_STATE_SETTLING = 2; // 0x2
91 }
92
93 @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 {
94 }
95
96 public static class ViewPager.LayoutParams extends android.view.ViewGroup.LayoutParams {
97 ctor public ViewPager.LayoutParams();
98 ctor public ViewPager.LayoutParams(android.content.Context!, android.util.AttributeSet!);
99 field public int gravity;
100 field public boolean isDecor;
101 }
102
103 public static interface ViewPager.OnAdapterChangeListener {
104 method public void onAdapterChanged(androidx.viewpager.widget.ViewPager, androidx.viewpager.widget.PagerAdapter?, androidx.viewpager.widget.PagerAdapter?);
105 }
106
107 public static interface ViewPager.OnPageChangeListener {
108 method public void onPageScrollStateChanged(int);
109 method public void onPageScrolled(int, float, @Px int);
110 method public void onPageSelected(int);
111 }
112
113 public static interface ViewPager.PageTransformer {
114 method public void transformPage(android.view.View, float);
115 }
116
117 public static class ViewPager.SavedState extends androidx.customview.view.AbsSavedState {
118 ctor public ViewPager.SavedState(android.os.Parcelable);
119 field public static final android.os.Parcelable.Creator<androidx.viewpager.widget.ViewPager.SavedState!>! CREATOR;
120 }
121
122 public static class ViewPager.SimpleOnPageChangeListener implements androidx.viewpager.widget.ViewPager.OnPageChangeListener {
123 ctor public ViewPager.SimpleOnPageChangeListener();
124 method public void onPageScrollStateChanged(int);
125 method public void onPageScrolled(int, float, int);
126 method public void onPageSelected(int);
127 }
128
129}
130