Searched refs:itemWidth (Results 1 – 2 of 2) sorted by relevance
440 float itemWidth = mCandidatesPaint.measureText(itemStr); in calculatePage() local441 if (itemWidth < MIN_ITEM_WIDTH) itemWidth = MIN_ITEM_WIDTH; in calculatePage()443 itemWidth += mCandidateMargin * 2; in calculatePage()444 itemWidth += mSeparatorDrawable.getIntrinsicWidth(); in calculatePage()445 if (xPos + itemWidth < mContentWidth || 0 == pSize) { in calculatePage()446 xPos += itemWidth; in calculatePage()447 lastItemWidth = itemWidth; in calculatePage()
119 Rect getIconRect(int itemWidth, int itemHeight, int drawableWidth, int drawableHeight) { in getIconRect() argument132 int xOffset = (int) -(itemWidth - width) / 2; in getIconRect()