Home
last modified time | relevance | path

Searched refs:ViewPager (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/support/design/tests/src/android/support/design/testutils/
DViewPagerActions.java28 import android.support.v4.view.ViewPager;
56 ViewPager viewPager = (ViewPager) view; in scrollRight()
84 ViewPager viewPager = (ViewPager) view;
112 ViewPager viewPager = (ViewPager) view;
142 ViewPager viewPager = (ViewPager) view;
172 ViewPager viewPager = (ViewPager) view;
187 return isAssignableFrom(ViewPager.class);
199 ViewPager viewPager = (ViewPager) view;
214 return isAssignableFrom(ViewPager.class);
226 ViewPager viewPager = (ViewPager) view;
DTabLayoutActions.java29 import android.support.v4.view.ViewPager;
41 public static ViewAction setupWithViewPager(final @Nullable ViewPager viewPager) { in setupWithViewPager()
68 public static ViewAction setupWithViewPager(final @Nullable ViewPager viewPager,
DTestUtilsActions.java27 import android.support.v4.view.ViewPager;
/frameworks/support/v4/tests/java/android/support/v4/view/
DViewPagerActions.java41 implements ViewPager.OnPageChangeListener, IdlingResource {
42 private int mCurrState = ViewPager.SCROLL_STATE_IDLE;
64 return mCurrState == ViewPager.SCROLL_STATE_IDLE; in isIdleNow()
70 if (mCurrState == ViewPager.SCROLL_STATE_IDLE) { in onPageSelected()
80 if (mCurrState == ViewPager.SCROLL_STATE_IDLE) { in onPageScrollStateChanged()
113 final ViewPager viewPager = (ViewPager) view; in wrap()
159 ViewPager viewPager = (ViewPager) view;
187 ViewPager viewPager = (ViewPager) view;
215 ViewPager viewPager = (ViewPager) view;
245 ViewPager viewPager = (ViewPager) view;
[all …]
DBaseViewPagerTest.java65 protected ViewPager mViewPager;
183 mViewPager = (ViewPager) activity.findViewById(R.id.pager); in setUp()
200 ViewPager.OnPageChangeListener mockPageChangeListener = in verifyPageSelections()
201 mock(ViewPager.OnPageChangeListener.class); in verifyPageSelections()
272 ViewPager.OnPageChangeListener mockPageChangeListener = in testPageSwipes()
273 mock(ViewPager.OnPageChangeListener.class); in testPageSwipes()
583 ViewPager.OnPageChangeListener mockPageChangeListener = in verifyScrollStateChange()
584 mock(ViewPager.OnPageChangeListener.class); in verifyScrollStateChange()
633 ViewPager.SCROLL_STATE_SETTLING, ViewPager.SCROLL_STATE_IDLE in testPageScrollStateChangedSmooth()
655 final int[] expectedScrollStateChanges = new int[] { ViewPager.SCROLL_STATE_DRAGGING, in testPageScrollStateChangedSwipe()
[all …]
/frameworks/base/docs/html/training/animation/
Dscreen-slide.jd1 page.title=Using ViewPager for Screen Slides
12 <li><a href="#viewpager">Add a ViewPager</a></li>
30 a {@link android.support.v4.view.ViewPager} provided by the <a href=
32 {@link android.support.v4.view.ViewPager}s can animate screen slides
106 <h2 id="viewpager">Add a ViewPager</h2>
108 <p>{@link android.support.v4.view.ViewPager}s have built-in swipe gestures to transition
109 …mations by default, so you don't need to create any. {@link android.support.v4.view.ViewPager}s use
114 <p>To begin, create a layout that contains a {@link android.support.v4.view.ViewPager}:</p>
118 &lt;android.support.v4.view.ViewPager
129 …<li>Sets the content view to be the layout with the {@link android.support.v4.view.ViewPager}.</li>
[all …]
Dindex.jd64 <b><a href="screen-slide.html">Using ViewPager for Screen Slides</a></b>
/frameworks/base/docs/html/training/implementing-navigation/
Dlateral.jd58 <p>You can create swipe views in your app using the {@link android.support.v4.view.ViewPager}
61 {@link android.support.v4.view.ViewPager} is a layout widget in which each child view is
64 <p>To set up your layout with {@link android.support.v4.view.ViewPager}, add a
65 {@code <ViewPager>} element to your XML layout. For example, if each page in the swipe view
70 &lt;android.support.v4.view.ViewPager
99 ViewPager mViewPager;
105 // ViewPager and its adapters use support library
110 mViewPager = (ViewPager) findViewById(R.id.pager);
216 {@link android.support.v4.view.ViewPager} as shown above, the following
223 <p>To switch between pages in a {@link android.support.v4.view.ViewPager} when the user selects
[all …]
/frameworks/support/v4/java/android/support/v4/view/
DPagerTitleStrip.java47 @ViewPager.DecorView
51 ViewPager mPager;
248 if (!(parent instanceof ViewPager)) { in onAttachedToWindow()
253 final ViewPager pager = (ViewPager) parent; in onAttachedToWindow()
477 private class PageListener extends DataSetObserver implements ViewPager.OnPageChangeListener,
478 ViewPager.OnAdapterChangeListener {
492 if (mScrollState == ViewPager.SCROLL_STATE_IDLE) { in onPageSelected()
507 public void onAdapterChanged(ViewPager viewPager, PagerAdapter oldAdapter, in onAdapterChanged()
DViewPager.java109 public class ViewPager extends ViewGroup { class
369 void onAdapterChanged(@NonNull ViewPager viewPager, in onAdapterChanged()
388 public ViewPager(Context context) { in ViewPager() method in ViewPager
393 public ViewPager(Context context, AttributeSet attrs) { in ViewPager() method in ViewPager
3005 event.setClassName(ViewPager.class.getName());
3020 info.setClassName(ViewPager.class.getName());
/frameworks/base/docs/html/training/displaying-bitmaps/
Ddisplay-bitmap.jd14 <li><a href="#viewpager">Load Bitmaps into a ViewPager Implementation</a></li>
37 bitmaps into {@link android.support.v4.view.ViewPager} and {@link android.widget.GridView}
41 <h2 id="viewpager">Load Bitmaps into a ViewPager Implementation</h2>
45 android.support.v4.view.ViewPager} component backed by a {@link
48 state of the {@link android.app.Fragment Fragments} in the {@link android.support.v4.view.ViewPager}
56 <p>Here’s an implementation of a {@link android.support.v4.view.ViewPager} with {@link
58 android.support.v4.view.ViewPager} and the adapter:</p>
65 private ViewPager mPager;
67 // A static dataset to back the ViewPager adapter
76 setContentView(R.layout.image_detail_pager); // Contains just a ViewPager
[all …]
Dindex.jd66 android.support.v4.view.ViewPager} commonly include multiple bitmaps on-screen at once with many
91 components like {@link android.support.v4.view.ViewPager} and {@link android.widget.GridView}
/frameworks/base/core/java/android/widget/
DDayPickerView.java20 import com.android.internal.widget.ViewPager;
21 import com.android.internal.widget.ViewPager.OnPageChangeListener;
52 private final ViewPager mViewPager;
130 mViewPager = (ViewPager) findViewById(R.id.day_picker_view_pager); in DayPickerView()
190 final ViewPager viewPager = mViewPager;
DDayPickerViewPager.java30 import com.android.internal.widget.ViewPager;
37 class DayPickerViewPager extends ViewPager {
/frameworks/support/design/src/android/support/design/widget/
DTabLayout.java42 import android.support.v4.view.ViewPager;
69 import static android.support.v4.view.ViewPager.SCROLL_STATE_DRAGGING;
70 import static android.support.v4.view.ViewPager.SCROLL_STATE_IDLE;
71 import static android.support.v4.view.ViewPager.SCROLL_STATE_SETTLING;
143 @ViewPager.DecorView
270 private ViewPager mViewPager;
746 public void setupWithViewPager(@Nullable ViewPager viewPager) { in setupWithViewPager()
768 public void setupWithViewPager(@Nullable final ViewPager viewPager, boolean autoRefresh) { in setupWithViewPager()
772 private void setupWithViewPager(@Nullable final ViewPager viewPager, boolean autoRefresh, in setupWithViewPager()
854 if (vp instanceof ViewPager) { in onAttachedToWindow()
[all …]
/frameworks/opt/photoviewer/src/com/android/ex/photo/
DPhotoViewPager.java22 import android.support.v4.view.ViewPager;
31 public class PhotoViewPager extends ViewPager {
/frameworks/support/v4/
Dproguard-rules.pro15 # Make sure we keep annotations for ViewPager's DecorView
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPagedTileLayout.java7 import android.support.v4.view.ViewPager;
19 public class PagedTileLayout extends ViewPager implements QSTileLayout {
/frameworks/support/design/tests/src/android/support/design/widget/
DTabLayoutWithViewPagerTest.java28 import android.support.v4.view.ViewPager;
56 private ViewPager mViewPager;
177 mViewPager = (ViewPager) activity.findViewById(R.id.tabs_viewpager); in setUp()
/frameworks/base/docs/html/topic/libraries/support-library/
Drevisions.jd282 <li>Fixed issue where {@link android.support.v4.view.ViewPager}
497 <li>Fixed a bug in {@link android.support.v4.view.ViewPager} related to
508 <li>Fixed a bug where {@link android.support.v4.view.ViewPager} does not set
1495 {@link android.support.v4.view.ViewPager}.
1569 …<li>Added the {@link android.support.v4.view.ViewPager#addOnPageChangeListener addOnPageChangeList…
1570 …{@link android.support.v4.view.ViewPager#clearOnPageChangeListeners clearOnPageChangeListeners()},…
1571 … {@link android.support.v4.view.ViewPager#removeOnPageChangeListener removeOnPageChangeListener()}
1572 methods to the {@link android.support.v4.view.ViewPager} class for responding to page
1575 …{@link android.support.v4.view.ViewPager#setOnPageChangeListener setOnPageChangeListener()} method…
2308 <li>Modified {@link android.support.v4.view.ViewPager} to better handle cases where the
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DViewPager.java87 public class ViewPager extends ViewGroup { class
351 public ViewPager(Context context) { in ViewPager() method in ViewPager
355 public ViewPager(Context context, AttributeSet attrs) { in ViewPager() method in ViewPager
359 public ViewPager(Context context, AttributeSet attrs, int defStyleAttr) { in ViewPager() method in ViewPager
363 public ViewPager(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ViewPager() method in ViewPager
2722 event.setClassName(ViewPager.class.getName());
2736 info.setClassName(ViewPager.class.getName());
/frameworks/base/docs/html/guide/topics/ui/
Dindex.jd30 <h4>Horizontal View Swiping with ViewPager</h4>
/frameworks/base/docs/html-intl/intl/ja/training/tv/start/
Dlayouts.jd165 <li><strong>ViewPager</strong> - スクリーン間のスライド操作は携帯電話やタブレット上では非常に有効ですが、TV では推奨できません。</li>
/frameworks/support/design/api/
D22.2.0.txt274 method public void setupWithViewPager(android.support.v4.view.ViewPager);
306 …Layout.TabLayoutOnPageChangeListener implements android.support.v4.view.ViewPager.OnPageChangeList…
314 ctor public TabLayout.ViewPagerOnTabSelectedListener(android.support.v4.view.ViewPager);
D22.2.1.txt283 method public void setupWithViewPager(android.support.v4.view.ViewPager);
316 …Layout.TabLayoutOnPageChangeListener implements android.support.v4.view.ViewPager.OnPageChangeList…
324 ctor public TabLayout.ViewPagerOnTabSelectedListener(android.support.v4.view.ViewPager);

12