Home
last modified time | relevance | path

Searched refs:softKey (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DSoftKeyboardView.java418 SoftKey softKey = softKeys.get(i); in onDraw() local
419 if (SoftKeyType.KEYTYPE_ID_NORMAL_KEY == softKey.mKeyType.mKeyTypeId) { in onDraw()
424 drawSoftKey(canvas, softKey, keyXMargin, keyYMargin); in onDraw()
436 private void drawSoftKey(Canvas canvas, SoftKey softKey, int keyXMargin, in drawSoftKey() argument
440 if (mKeyPressed && softKey == mSoftKeyDown) { in drawSoftKey()
441 bg = softKey.getKeyHlBg(); in drawSoftKey()
442 textColor = softKey.getColorHl(); in drawSoftKey()
444 bg = softKey.getKeyBg(); in drawSoftKey()
445 textColor = softKey.getColor(); in drawSoftKey()
449 bg.setBounds(softKey.mLeft + keyXMargin, softKey.mTop + keyYMargin, in drawSoftKey()
[all …]
DXmlKeyboardLoader.java411 SoftKey softKey = getSoftKey(xrp, attrKey); in loadSkbTemplate() local
412 if (null == softKey) return null; in loadSkbTemplate()
413 mSkbTemplate.addDefaultKey(keyId, softKey); in loadSkbTemplate()
439 SoftKey softKey = null; in loadKeyboard() local
544 softKey = new SoftKey(); in loadKeyboard()
549 softKey.setKeyAttribute(keyCode, labelArr[i], in loadKeyboard()
552 softKey.setKeyType(mSkbTemplate in loadKeyboard()
565 softKey.setKeyDimensions(left, top, right, bottom); in loadKeyboard()
566 softKeyboard.addSoftKey(softKey); in loadKeyboard()
582 softKey = mSkbTemplate.getDefaultKey(keyId); in loadKeyboard()
[all …]
DSkbTemplate.java41 SoftKey softKey; field in KeyRecord
177 public void addDefaultKey(int keyId, SoftKey softKey) { in addDefaultKey() argument
178 if (null == softKey) return; in addDefaultKey()
182 keyRecord.softKey = softKey; in addDefaultKey()
203 return keyRecord.softKey; in getDefaultKey()
DSoftKeyboard.java186 public boolean addSoftKey(SoftKey softKey) { in addSoftKey() argument
192 softKey.setSkbCoreSize(mSkbCoreWidth, mSkbCoreHeight); in addSoftKey()
193 softKeys.add(softKey); in addSoftKey()
194 if (softKey.mTopF < keyRow.mTopF) { in addSoftKey()
195 keyRow.mTopF = softKey.mTopF; in addSoftKey()
197 if (softKey.mBottomF > keyRow.mBottomF) { in addSoftKey()
198 keyRow.mBottomF = softKey.mBottomF; in addSoftKey()
221 SoftKey softKey = softKeys.get(i); in setSkbCoreSize() local
222 softKey.setSkbCoreSize(skbCoreWidth, skbCoreHeight); in setSkbCoreSize()