Home
last modified time | relevance | path

Searched refs:totalSpace (Results 1 – 3 of 3) sorted by relevance

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java267 int totalSpace; in updateMeasurements() local
269 totalSpace = getWidth() - getPaddingRight() - getPaddingLeft(); in updateMeasurements()
271 totalSpace = getHeight() - getPaddingBottom() - getPaddingTop(); in updateMeasurements()
273 calculateItemBorders(totalSpace); in updateMeasurements()
276 private void calculateItemBorders(int totalSpace) { in calculateItemBorders() argument
278 || mCachedBorders[mCachedBorders.length - 1] != totalSpace) { in calculateItemBorders()
282 int sizePerSpan = totalSpace / mSpanCount; in calculateItemBorders()
283 int sizePerSpanRemainder = totalSpace % mSpanCount; in calculateItemBorders()
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DLinearLayoutManagerTest.java794 final int totalSpace = mLayoutManager.mOrientationHelper.getTotalSpace(); in getFirstLastChildrenTest() local
801 holder.itemView.setMinimumWidth(totalSpace + 5); in getFirstLastChildrenTest()
803 holder.itemView.setMinimumHeight(totalSpace + 5); in getFirstLastChildrenTest()
DStaggeredGridLayoutManagerTest.java547 final int totalSpace = mLayoutManager.mPrimaryOrientation.getTotalSpace(); in getFirstLastChildrenTest() local
554 holder.itemView.setMinimumWidth(totalSpace + 100); in getFirstLastChildrenTest()
556 holder.itemView.setMinimumHeight(totalSpace + 100); in getFirstLastChildrenTest()