/frameworks/support/v7/recyclerview/ |
README.txt | 1 Library Project including RecyclerView and associated utilities.
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
RecyclerViewLayoutTest.java | 20 import static android.support.v7.widget.RecyclerView.NO_POSITION; 21 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_DRAGGING; 22 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_IDLE; 23 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_SETTLING; 24 import static android.support.v7.widget.RecyclerView.getChildViewHolderInt; 125 final RecyclerView rv = new RecyclerView(getActivity()); 131 public void onLayoutCompleted(RecyclerView.State state) { 137 public void onDetachedFromWindow(RecyclerView view, RecyclerView.Recycler recycler) [all...] |
ScrollToPositionWithAutoMeasure.java | 63 public void test(final RecyclerView.LayoutManager llm, 65 final RecyclerView recyclerView = new RecyclerView(getActivity()); 66 recyclerView.setLayoutManager(llm); 67 recyclerView.setAdapter(new TestAdapter(1000)); 68 setRecyclerView(recyclerView); 70 assertThat("Test sanity", recyclerView.getChildCount() > 0, is(true)); 75 int lastChildPos = recyclerView.getChildAdapterPosition(lastChild); 78 recyclerView.measure [all...] |
RecyclerViewAccessibilityTest.java | 74 final RecyclerView recyclerView = new RecyclerView(getActivity()) { 92 recyclerView.setAdapter(adapter); 93 recyclerView.setLayoutManager(new TestLayoutManager() { 96 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { 101 public RecyclerView.LayoutParams generateDefaultLayoutParams() { 102 return new RecyclerView.LayoutParams(-1, -1); 111 public int scrollHorizontallyBy(int dx, RecyclerView.Recycler recycler [all...] |
BaseRecyclerViewInstrumentationTest.java | 19 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_IDLE; 33 import android.support.v7.recyclerview.test.SameActivityTestRule; 52 import android.support.v7.recyclerview.test.R; 64 protected RecyclerView mRecyclerView; 137 void setAdapter(final RecyclerView.Adapter adapter) throws Throwable { 168 void swapAdapter(final RecyclerView.Adapter adapter, 252 final RecyclerView.Adapter adapter = mRecyclerView.getAdapter(); 273 .isRunning(new RecyclerView.ItemAnimator.ItemAnimatorFinishedListener() { 286 public void waitForIdleScroll(final RecyclerView recyclerView) throws Throwable [all...] |
LoggingItemAnimator.java | 29 final ArrayList<RecyclerView.ViewHolder> mAddVHs = new ArrayList<RecyclerView.ViewHolder>(); 31 final ArrayList<RecyclerView.ViewHolder> mRemoveVHs = new ArrayList<RecyclerView.ViewHolder>(); 33 final ArrayList<RecyclerView.ViewHolder> mMoveVHs = new ArrayList<RecyclerView.ViewHolder>(); 35 final ArrayList<RecyclerView.ViewHolder> mChangeOldVHs = new ArrayList<RecyclerView.ViewHolder>(); 37 final ArrayList<RecyclerView.ViewHolder> mChangeNewVHs = new ArrayList<RecyclerView.ViewHolder>() [all...] |
FocusSearchNavigationTest.java | 20 import static android.support.v7.widget.RecyclerView.HORIZONTAL; 21 import static android.support.v7.widget.RecyclerView.SCROLL_STATE_IDLE; 22 import static android.support.v7.widget.RecyclerView.VERTICAL; 30 import android.support.v7.recyclerview.test.R; 57 * This class tests RecyclerView focus search failure handling by using a real LayoutManager. 83 private RecyclerView mRecyclerView; 96 mRecyclerView = (RecyclerView) mActivity.findViewById(R.id.recycler_view); 128 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i); 148 RecyclerView.ViewHolder lastViewHolder = null; 157 RecyclerView.ViewHolder viewHolder = mRecyclerView.findViewHolderForAdapterPosition(i) [all...] |
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
ItemTouchHelperActivity.java | 29 import android.support.v7.widget.RecyclerView; 46 public RecyclerView mRecyclerView; 60 mRecyclerView = (RecyclerView) findViewById(R.id.recycler_view); 72 RecyclerView configView = (RecyclerView) findViewById(R.id.config_recycler_view); 73 configView.setAdapter(new RecyclerView.Adapter<ConfigViewHolder>() { 106 public int getMovementFlags(RecyclerView recyclerView, 107 RecyclerView.ViewHolder viewHolder) { 108 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder) [all...] |
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/util/ |
RecyclerViewRequireScrollHelper.java | 19 import android.support.v7.widget.RecyclerView; 31 public static void requireScroll(NavigationBar navigationBar, RecyclerView recyclerView) { 32 new RecyclerViewRequireScrollHelper(navigationBar, recyclerView).requireScroll(); 35 private final RecyclerView mRecyclerView; 38 RecyclerView recyclerView) { 40 mRecyclerView = recyclerView; 45 mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() { 47 public void onScrolled(RecyclerView recyclerView, int dx, int dy) [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
SnapHelper.java | 21 import android.support.v7.widget.RecyclerView.LayoutManager; 26 import android.support.v7.widget.RecyclerView.SmoothScroller.ScrollVectorProvider; 29 * Class intended to support snapping for a {@link RecyclerView}. 32 * {@link RecyclerView.LayoutManager} must implement the {@link ScrollVectorProvider} interface or 35 public abstract class SnapHelper extends RecyclerView.OnFlingListener { 39 private RecyclerView mRecyclerView; 43 private final RecyclerView.OnScrollListener mScrollListener = 44 new RecyclerView.OnScrollListener() { 46 public void onScrollStateChanged(RecyclerView recyclerView, int newState) [all...] |
RecyclerViewAccessibilityDelegate.java | 26 * The AccessibilityDelegate used by RecyclerView. 31 final RecyclerView mRecyclerView; 34 public RecyclerViewAccessibilityDelegate(RecyclerView recyclerView) { 35 mRecyclerView = recyclerView; 57 info.setClassName(RecyclerView.class.getName()); 66 event.setClassName(RecyclerView.class.getName()); 67 if (host instanceof RecyclerView && !shouldIgnore()) { 68 RecyclerView rv = (RecyclerView) host [all...] |
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
ItemTouchUIUtilImpl.java | 21 import android.support.v7.widget.RecyclerView; 23 import android.support.v7.recyclerview.R; 33 public void onDraw(Canvas c, RecyclerView recyclerView, View view, 39 float newElevation = 1f + findMaxElevation(recyclerView, view); 44 super.onDraw(c, recyclerView, view, dX, dY, actionState, isCurrentlyActive); 47 private float findMaxElevation(RecyclerView recyclerView, View itemView) { 48 final int childCount = recyclerView.getChildCount(); 51 final View child = recyclerView.getChildAt(i) [all...] |
ItemTouchUIUtil.java | 20 import android.support.v7.widget.RecyclerView; 29 * {@link RecyclerView.ViewHolder#itemView} and {@link ItemTouchUIUtil} makes necessary changes 40 * RecyclerView, RecyclerView.ViewHolder, float, float, int, boolean)} 42 void onDraw(Canvas c, RecyclerView recyclerView, View view, 47 * RecyclerView, RecyclerView.ViewHolder, float, float, int, boolean)} 49 void onDrawOver(Canvas c, RecyclerView recyclerView, View view [all...] |
/development/samples/browseable/RecyclerView/ |
_index.jd | 2 page.tags="RecyclerView" 8 Demonstration of using RecyclerView with a LinearLayoutManager and GridLayoutManager
|
/developers/samples/android/ui/views/RecyclerView/Application/src/androidTest/java/com/example/android/recyclerview/test/ |
RecyclerViewSampleTests.java | 17 package com.example.android.recyclerview.test; 19 import com.example.android.recyclerview.MainActivity; 20 import com.example.android.recyclerview.R; 21 import com.example.android.recyclerview.RecyclerViewFragment; 24 import android.support.v7.widget.RecyclerView; 28 * Tests for RecyclerView sample. 63 RecyclerView recyclerView = 64 (RecyclerView) mTestFragment.getView().findViewById(R.id.recyclerView); [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
RvCompatListActivity.java | 16 package com.android.test.uibench.recyclerview; 25 import android.support.v7.widget.RecyclerView; 35 RecyclerView.LayoutManager layoutManager; 36 RecyclerView.Adapter adapter; 42 RecyclerView recyclerView = (RecyclerView) inflater.inflate( 44 recyclerView.setLayoutManager(layoutManager); 45 recyclerView.setAdapter(adapter); 46 return recyclerView; [all...] |
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
ItemTouchHelperTest.java | 29 import android.support.v7.widget.RecyclerView; 61 private RecyclerView setup(int dragDirs, int swipeDirs) throws Throwable { 66 public void onLayoutChildren(RecyclerView.Recycler recycler, RecyclerView.State state) { 141 final RecyclerView recyclerView = setup(0, swipeDirs); 143 setRecyclerView(recyclerView); 146 final RecyclerView.ViewHolder target = mRecyclerView 177 private List<RecyclerView.ViewHolder> mCleared = new ArrayList<RecyclerView.ViewHolder>() [all...] |
/frameworks/base/docs/html-intl/intl/ja/training/material/ |
lists-cards.jd | 9 <li><a href="#RecyclerView">????????</a></li> 23 {@link android.support.v7.widget.RecyclerView} ??????? {@link android.support.v7.widget.CardView} 27 <h2 id="RecyclerView">????????</h2> 29 <p>{@link android.support.v7.widget.RecyclerView} ????????{@link android.widget.ListView} ??????????????????? 32 {@link android.support.v7.widget.RecyclerView} ???????????????? 35 <p>{@link android.support.v7.widget.RecyclerView} ????????????????????????????????????????????? 44 android.support.v7.widget.RecyclerView} ??????????? ????? ?????????????????????????</p> 46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106" /> 48 <strong>? 1</strong> <code>RecyclerView</code> ??????? 51 <p>{@link android.support.v7.widget.RecyclerView} ????????????????????????? ??????????????????? [all...] |
/frameworks/base/docs/html-intl/intl/ko/training/material/ |
lists-cards.jd | 9 <li><a href="#RecyclerView">?? ??</a></li> 23 {@link android.support.v7.widget.RecyclerView} ? {@link android.support.v7.widget.CardView} 27 <h2 id="RecyclerView">?? ??</h2> 29 <p>{@link android.support.v7.widget.RecyclerView} ??? {@link android.widget.ListView}? ?? ???? ???? ?????. 32 {@link android.support.v7.widget.RecyclerView} ??? ?????. 35 <p>{@link android.support.v7.widget.RecyclerView} ???? ?? ??? ???? ? ??? ??? ?? ? ?? ??? ??????. 44 android.support.v7.widget.RecyclerView} ??? ?? ????? ???? ??? ? ?????? ??? ?? ????.</p> 46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106" /> 48 <strong>?? 1</strong>. <code>RecyclerView</code> ??. 51 <p>{@link android.support.v7.widget.RecyclerView} ??? ????? ???? ???? ???? ???? ??? [all...] |
/frameworks/base/docs/html-intl/intl/ru/training/material/ |
lists-cards.jd | 9 <li><a href="#RecyclerView">???????? ???????</a></li> 23 {@link android.support.v7.widget.RecyclerView} ? {@link android.support.v7.widget.CardView}. 27 <h2 id="RecyclerView">???????? ???????</h2> 29 <p>?????? {@link android.support.v7.widget.RecyclerView} ???????????? ????? ??????????? ? ????? ?????? ?????? {@link android.widget.ListView}. 32 {@link android.support.v7.widget.RecyclerView} ????????????? ???????????? ? ???????, ????? ??????? ????????? ??????, ???????? ??????? ?????????? ?? ????? ?????????? ? ??????????? ?? ???????? ???????????? ??? ??????? ???????. 35 <p>????? {@link android.support.v7.widget.RecyclerView} ???????? ??????????? ? ????????? ??????? ??????? ?????? ? ??????? ????????? ????????????: 44 android.support.v7.widget.RecyclerView}.</p> 46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106" /> 48 <strong>??????? 1</strong>. ?????? <code>RecyclerView</code>. 51 <p>????? ??????????????? ???????? {@link android.support.v7.widget.RecyclerView}, ?????????? ?????????? ??????? ? ???????? ??????? [all...] |
/frameworks/base/docs/html-intl/intl/zh-cn/training/material/ |
lists-cards.jd | 9 <li><a href="#RecyclerView">????</a></li> 23 {@link android.support.v7.widget.RecyclerView} ?? {@link android.support.v7.widget.CardView} 27 <h2 id="RecyclerView">????</h2> 29 <p>{@link android.support.v7.widget.RecyclerView} ???? {@link android.widget.ListView} ?????????? 32 {@link android.support.v7.widget.RecyclerView} ???? 35 <p>{@link android.support.v7.widget.RecyclerView} ????????????????????????? 44 android.support.v7.widget.RecyclerView} ????????????????</p> 46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106" /> 48 <strong>? 1</strong>.<code>RecyclerView</code> ???? 51 <p>????? {@link android.support.v7.widget.RecyclerView} ??????????????????????? [all...] |
/frameworks/base/docs/html-intl/intl/zh-tw/training/material/ |
lists-cards.jd | 9 <li><a href="#RecyclerView">????</a></li> 22 <p>??????????????????????????????? {@link android.support.v7.widget.RecyclerView} ? {@link android.support.v7.widget.CardView} ???? 27 <h2 id="RecyclerView">????</h2> 29 <p>{@link android.support.v7.widget.RecyclerView} ???????????? {@link android.widget.ListView} ??? 31 ??????????????????????????????????? {@link android.support.v7.widget.RecyclerView} ???? 35 <p>{@link android.support.v7.widget.RecyclerView} ?????????????????????????? 44 android.support.v7.widget.RecyclerView} ????????????????</p> 46 <img src="{@docRoot}training/material/images/RecyclerView.png" alt="" width="550" height="106" /> 48 <strong>? 1.</strong><code>RecyclerView</code> ???? 51 <p>????? {@link android.support.v7.widget.RecyclerView} ????????????????????? [all...] |
/frameworks/base/tests/UiBench/src/com/android/test/uibench/ |
TrivialRecyclerViewActivity.java | 18 import android.support.v7.widget.RecyclerView; 20 import com.android.test.uibench.recyclerview.RvArrayAdapter; 21 import com.android.test.uibench.recyclerview.RvCompatListActivity; 25 protected RecyclerView.Adapter createAdapter() {
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/recyclerview/test/ |
PrivateLayoutManager.java | 17 package android.support.v7.recyclerview.test; 20 import android.support.v7.widget.RecyclerView; 23 class PrivateLayoutManager extends RecyclerView.LayoutManager { 31 public RecyclerView.LayoutParams generateDefaultLayoutParams() {
|
/frameworks/support/v7/preference/src/android/support/v7/preference/ |
PreferenceRecyclerViewAccessibilityDelegate.java | 22 import android.support.v7.widget.RecyclerView; 28 * The AccessibilityDelegate used by the RecyclerView that displays Views for Preferences. 34 final RecyclerView mRecyclerView; 37 public PreferenceRecyclerViewAccessibilityDelegate(RecyclerView recyclerView) { 38 super(recyclerView); 39 mRecyclerView = recyclerView; 53 RecyclerView.Adapter adapter = mRecyclerView.getAdapter();
|