Searched refs:keyAttr (Results 1 – 6 of 6) sorted by relevance
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyVisualAttributes.java | 89 public static KeyVisualAttributes newInstance(@Nonnull final TypedArray keyAttr) { in newInstance() argument 90 final int indexCount = keyAttr.getIndexCount(); in newInstance() 92 final int attrId = keyAttr.getIndex(i); in newInstance() 96 return new KeyVisualAttributes(keyAttr); in newInstance() 101 private KeyVisualAttributes(@Nonnull final TypedArray keyAttr) { in KeyVisualAttributes() argument 102 if (keyAttr.hasValue(R.styleable.Keyboard_Key_keyTypeface)) { in KeyVisualAttributes() 104 keyAttr.getInt(R.styleable.Keyboard_Key_keyTypeface, Typeface.NORMAL)); in KeyVisualAttributes() 109 mLetterRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() 111 mLetterSize = ResourceUtils.getDimensionPixelSize(keyAttr, in KeyVisualAttributes() 113 mLabelRatio = ResourceUtils.getFraction(keyAttr, in KeyVisualAttributes() [all …]
|
D | KeyboardRow.java | 64 public RowAttributes(final TypedArray keyAttr, final float defaultKeyWidth, in RowAttributes() argument 66 mDefaultKeyWidth = keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in RowAttributes() 68 mDefaultKeyLabelFlags = keyAttr.getInt(R.styleable.Keyboard_Key_keyLabelFlags, 0); in RowAttributes() 69 mDefaultBackgroundType = keyAttr.getInt(R.styleable.Keyboard_Key_backgroundType, in RowAttributes() 81 public RowAttributes(final TypedArray keyAttr, final RowAttributes defaultRowAttr, in RowAttributes() argument 83 mDefaultKeyWidth = keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in RowAttributes() 85 mDefaultKeyLabelFlags = keyAttr.getInt(R.styleable.Keyboard_Key_keyLabelFlags, 0) in RowAttributes() 87 mDefaultBackgroundType = keyAttr.getInt(R.styleable.Keyboard_Key_backgroundType, in RowAttributes() 104 final TypedArray keyAttr = res.obtainAttributes(Xml.asAttributeSet(parser), in KeyboardRow() local 107 keyAttr, params.mDefaultKeyWidth, params.mBaseWidth)); in KeyboardRow() [all …]
|
D | KeyStylesSet.java | 147 public void readKeyAttributes(final TypedArray keyAttr) { in readKeyAttributes() argument 149 readString(keyAttr, R.styleable.Keyboard_Key_altCode); in readKeyAttributes() 150 readString(keyAttr, R.styleable.Keyboard_Key_keySpec); in readKeyAttributes() 151 readString(keyAttr, R.styleable.Keyboard_Key_keyHintLabel); in readKeyAttributes() 152 readStringArray(keyAttr, R.styleable.Keyboard_Key_moreKeys); in readKeyAttributes() 153 readStringArray(keyAttr, R.styleable.Keyboard_Key_additionalMoreKeys); in readKeyAttributes() 154 readFlags(keyAttr, R.styleable.Keyboard_Key_keyLabelFlags); in readKeyAttributes() 155 readString(keyAttr, R.styleable.Keyboard_Key_keyIconDisabled); in readKeyAttributes() 156 readInt(keyAttr, R.styleable.Keyboard_Key_maxMoreKeysColumn); in readKeyAttributes() 157 readInt(keyAttr, R.styleable.Keyboard_Key_backgroundType); in readKeyAttributes() [all …]
|
D | KeyboardBuilder.java | 241 final TypedArray keyAttr = mResources.obtainAttributes(attr, R.styleable.Keyboard_Key); in parseKeyboardAttributes() local 260 params.mDefaultKeyWidth = (int)keyAttr.getFraction(R.styleable.Keyboard_Key_keyWidth, in parseKeyboardAttributes() 275 params.mKeyVisualAttributes = KeyVisualAttributes.newInstance(keyAttr); in parseKeyboardAttributes() 279 params.mMaxMoreKeysKeyboardColumn = keyAttr.getInt( in parseKeyboardAttributes() 293 keyAttr.recycle(); in parseKeyboardAttributes() 477 final TypedArray keyAttr = mResources.obtainAttributes( in parseKey() local 479 final KeyStyle keyStyle = mParams.mKeyStyles.getKeyStyle(keyAttr, parser); in parseKey() 480 final String keySpec = keyStyle.getString(keyAttr, R.styleable.Keyboard_Key_keySpec); in parseKey() 484 final Key key = new Key(keySpec, keyAttr, keyStyle, mParams, row); in parseKey() 485 keyAttr.recycle(); in parseKey() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
D | Key.java | 255 public Key(@Nullable final String keySpec, @Nonnull final TypedArray keyAttr, in Key() argument 265 final float keyXPos = row.getKeyX(keyAttr); in Key() 266 final float keyWidth = row.getKeyWidth(keyAttr, keyXPos); in Key() 278 mBackgroundType = style.getInt(keyAttr, in Key() 282 final int visualInsetsLeft = Math.round(keyAttr.getFraction( in Key() 284 final int visualInsetsRight = Math.round(keyAttr.getFraction( in Key() 287 mLabelFlags = style.getFlags(keyAttr, R.styleable.Keyboard_Key_keyLabelFlags) in Key() 291 int actionFlags = style.getFlags(keyAttr, R.styleable.Keyboard_Key_keyActionFlags); in Key() 292 String[] moreKeys = style.getStringArray(keyAttr, R.styleable.Keyboard_Key_moreKeys); in Key() 296 | style.getInt(keyAttr, R.styleable.Keyboard_Key_maxMoreKeysColumn, in Key() [all …]
|
D | KeyboardView.java | 159 final TypedArray keyAttr = context.obtainStyledAttributes(attrs, in KeyboardView() local 161 mDefaultKeyLabelFlags = keyAttr.getInt(R.styleable.Keyboard_Key_keyLabelFlags, 0); in KeyboardView() 162 mKeyVisualAttributes = KeyVisualAttributes.newInstance(keyAttr); in KeyboardView() 163 keyAttr.recycle(); in KeyboardView()
|