Home
last modified time | relevance | path

Searched refs:itemWidth (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DCandidateView.java440 float itemWidth = mCandidatesPaint.measureText(itemStr); in calculatePage() local
441 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()
/packages/apps/Launcher2/src/com/android/launcher2/
DButtonDropTarget.java119 Rect getIconRect(int itemWidth, int itemHeight, int drawableWidth, int drawableHeight) { in getIconRect() argument
132 int xOffset = (int) -(itemWidth - width) / 2; in getIconRect()