Lines Matching refs:totalSpace
274 int totalSpace;
276 totalSpace = getWidth() - getPaddingRight() - getPaddingLeft();
278 totalSpace = getHeight() - getPaddingBottom() - getPaddingTop();
280 calculateItemBorders(totalSpace);
306 * @param totalSpace Total available space after padding is removed
308 private void calculateItemBorders(int totalSpace) {
309 mCachedBorders = calculateItemBorders(mCachedBorders, mSpanCount, totalSpace);
315 * @param totalSpace total available space after padding is removed
319 static int[] calculateItemBorders(int[] cachedBorders, int spanCount, int totalSpace) {
321 || cachedBorders[cachedBorders.length - 1] != totalSpace) {
325 int sizePerSpan = totalSpace / spanCount;
326 int sizePerSpanRemainder = totalSpace % spanCount;