Home
last modified time | relevance | path

Searched refs:mLayoutManager (Results 1 – 9 of 9) sorted by relevance

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DBaseGridView.java166 protected final GridLayoutManager mLayoutManager; field in BaseGridView
183 mLayoutManager = new GridLayoutManager(this); in BaseGridView()
184 setLayoutManager(mLayoutManager); in BaseGridView()
200 mLayoutManager.setFocusOutAllowed(throughFront, throughEnd); in initBaseGridViewAttributes()
201 mLayoutManager.setVerticalMargin( in initBaseGridViewAttributes()
203 mLayoutManager.setHorizontalMargin( in initBaseGridViewAttributes()
224 mLayoutManager.setFocusScrollStrategy(scrollStrategy); in setFocusScrollStrategy()
237 return mLayoutManager.getFocusScrollStrategy(); in getFocusScrollStrategy()
248 mLayoutManager.setWindowAlignment(windowAlignment); in setWindowAlignment()
259 return mLayoutManager.getWindowAlignment(); in getWindowAlignment()
[all …]
DVerticalGridView.java39 mLayoutManager.setOrientation(RecyclerView.VERTICAL); in VerticalGridView()
66 mLayoutManager.setNumRows(numColumns); in setNumColumns()
77 mLayoutManager.setRowHeight(width); in setColumnWidth()
DHorizontalGridView.java63 mLayoutManager.setOrientation(RecyclerView.HORIZONTAL); in HorizontalGridView()
93 mLayoutManager.setNumRows(numRows); in setNumRows()
104 mLayoutManager.setRowHeight(height); in setRowHeight()
247 if (mLayoutManager.getOpticalLeft(view) < in needsFadingLowEdge()
262 if (mLayoutManager.getOpticalRight(view) > getWidth() in needsFadingHighEdge()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DOrientationHelper.java36 protected final RecyclerView.LayoutManager mLayoutManager; field in OrientationHelper
45 mLayoutManager = layoutManager; in OrientationHelper()
197 return mLayoutManager.getWidth() - mLayoutManager.getPaddingRight(); in createHorizontalHelper()
202 return mLayoutManager.getWidth(); in createHorizontalHelper()
207 mLayoutManager.offsetChildrenHorizontal(amount); in createHorizontalHelper()
212 return mLayoutManager.getPaddingLeft(); in createHorizontalHelper()
219 return mLayoutManager.getDecoratedMeasuredWidth(view) + params.leftMargin in createHorizontalHelper()
227 return mLayoutManager.getDecoratedMeasuredHeight(view) + params.topMargin in createHorizontalHelper()
235 return mLayoutManager.getDecoratedRight(view) + params.rightMargin; in createHorizontalHelper()
242 return mLayoutManager.getDecoratedLeft(view) - params.leftMargin; in createHorizontalHelper()
[all …]
DRecyclerView.java7537 private LayoutManager mLayoutManager; field in RecyclerView.SmoothScroller
7565 mLayoutManager = layoutManager; in start()
7585 return mLayoutManager; in getLayoutManager()
7605 mLayoutManager.onSmoothScrollerStopped(this); in stop()
7607 mLayoutManager = null; in stop()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DStaggeredGridLayoutManagerTest.java57 volatile WrappedLayoutManager mLayoutManager; field in StaggeredGridLayoutManagerTest
84 mLayoutManager = new WrappedLayoutManager(config.mSpanCount, in setupByConfig()
86 mLayoutManager.setGapStrategy(config.mGapStrategy); in setupByConfig()
87 mLayoutManager.setReverseLayout(config.mReverseLayout); in setupByConfig()
88 mRecyclerView.setLayoutManager(mLayoutManager); in setupByConfig()
109 mLayoutManager.expectLayouts(1); in testAreAllStartsTheSame()
111 mLayoutManager.waitForLayout(2); in testAreAllStartsTheSame()
113 assertFalse("all starts should not be the same", mLayoutManager.areAllStartsEqual()); in testAreAllStartsTheSame()
120 mLayoutManager.expectLayouts(1); in testAreAllEndsTheSame()
122 mLayoutManager.waitForLayout(2); in testAreAllEndsTheSame()
[all …]
DLinearLayoutManagerTest.java59 WrappedLinearLayoutManager mLayoutManager; field in LinearLayoutManagerTest
98 mLayoutManager = new WrappedLinearLayoutManager(getActivity(), config.mOrientation, in setupByConfig()
100 mLayoutManager.setStackFromEnd(config.mStackFromEnd); in setupByConfig()
101 mLayoutManager.setRecycleChildrenOnDetach(config.mRecycleChildrenOnDetach); in setupByConfig()
102 mRecyclerView.setLayoutManager(mLayoutManager); in setupByConfig()
110 int center = (mLayoutManager.findLastVisibleItemPosition() in testKeepFocusOnRelayout()
111 - mLayoutManager.findFirstVisibleItemPosition()) / 2; in testKeepFocusOnRelayout()
113 final int top = mLayoutManager.mOrientationHelper.getDecoratedStart(vh.itemView); in testKeepFocusOnRelayout()
122 mLayoutManager.expectLayouts(2); in testKeepFocusOnRelayout()
126 mLayoutManager.waitForLayout(2); in testKeepFocusOnRelayout()
[all …]
DRecyclerViewAnimationsTest.java42 AnimationLayoutManager mLayoutManager; field in RecyclerViewAnimationsTest
75 mLayoutManager = new AnimationLayoutManager(); in setupBasic()
76 recyclerView.setLayoutManager(mLayoutManager); in setupBasic()
77 mLayoutManager.mOnLayoutCallbacks.mLayoutMin = firstLayoutStartIndex; in setupBasic()
78 mLayoutManager.mOnLayoutCallbacks.mLayoutItemCount = firstLayoutItemCount; in setupBasic()
80 mLayoutManager.expectLayouts(1); in setupBasic()
83 mLayoutManager.waitForLayout(2); in setupBasic()
85 mLayoutManager.mOnLayoutCallbacks.reset(); in setupBasic()
87 assertEquals("extra layouts should not happen", 1, mLayoutManager.getTotalLayoutCount()); in setupBasic()
89 mLayoutManager.getChildCount()); in setupBasic()
[all …]
/frameworks/base/docs/html/training/material/
Dlists-cards.jd113 private RecyclerView.LayoutManager mLayoutManager;
126 mLayoutManager = new LinearLayoutManager(this);
127 mRecyclerView.setLayoutManager(mLayoutManager);