Lines Matching defs:mNumColumns
48 private int mNumColumns;
123 mNumColumns = Math.min((int) Math.ceil((double) wSize / itemWidth), mMaxColumns);
127 int wSizeNeeded = mNumColumns * itemWidth + (mNumColumns - 1) * mItemHorizontalMargin;
128 if (wSizeNeeded > wSize && mNumColumns > 1) {
129 mNumColumns--;
132 if (getChildCount() < mNumColumns) {
133 mNumColumns = getChildCount();
135 if (mNumColumns == 0) {
136 mNumColumns = 1;
153 int firstColumnItems = getChildCount() / mNumColumns + ((getChildCount() % mNumColumns) > 0
156 int horizontalMarginsTotalWidth = (mNumColumns - 1) * mItemHorizontalMargin;
158 int totalWidth = mNumColumns * itemWidth + horizontalMarginsTotalWidth +
172 int itemsPerColumn = getChildCount() / mNumColumns;
174 int remainderItems = getChildCount() % mNumColumns;