Add ZWNJ and ZWJ icons
Bug: 5456620 Change-Id: I7238f41c841803746ca2ab6cd332b2be8498a3eemain
parent
fce9ca4202
commit
39390d3f94
Binary file not shown.
After Width: | Height: | Size: 973 B |
Binary file not shown.
After Width: | Height: | Size: 961 B |
Binary file not shown.
After Width: | Height: | Size: 733 B |
Binary file not shown.
After Width: | Height: | Size: 704 B |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -224,6 +224,8 @@
|
|||
<attr name="iconDisabledShortcutKey" format="reference" />
|
||||
<attr name="iconPreviewTabKey" format="reference" />
|
||||
<attr name="iconLanguageSwitchKey" format="reference" />
|
||||
<attr name="iconZwnjKey" format="reference" />
|
||||
<attr name="iconZwjKey" format="reference" />
|
||||
</declare-styleable>
|
||||
|
||||
<declare-styleable name="Keyboard_Key">
|
||||
|
@ -309,6 +311,8 @@
|
|||
<enum name="iconSpaceKeyForNumberLayout" value="10" />
|
||||
<enum name="iconShiftKeyShifted" value="11" />
|
||||
<enum name="iconLanguageSwitchKey" value="14" />
|
||||
<enum name="iconZwnjKey" value="15" />
|
||||
<enum name="iconZwjKey" value="16" />
|
||||
</attr>
|
||||
<!-- The icon for disabled key -->
|
||||
<attr name="keyIconDisabled" format="enum">
|
||||
|
|
|
@ -36,5 +36,8 @@
|
|||
<item name="iconPreviewTabKey">@drawable/sym_keyboard_feedback_tab</item>
|
||||
<!-- TODO: Needs dedicated black theme globe icon -->
|
||||
<item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch</item>
|
||||
<!-- TODO: Needs dedicated black theme ZWNJ and ZWJ icons -->
|
||||
<item name="iconZwnjKey">@drawable/sym_keyboard_zwnj_holo</item>
|
||||
<item name="iconZwjKey">@drawable/sym_keyboard_zwj_holo</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -34,5 +34,7 @@
|
|||
<item name="iconDisabledShortcutKey">@drawable/sym_keyboard_voice_off_holo</item>
|
||||
<item name="iconPreviewTabKey">@drawable/sym_keyboard_feedback_tab</item>
|
||||
<item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch</item>
|
||||
<item name="iconZwnjKey">@drawable/sym_keyboard_zwnj_holo</item>
|
||||
<item name="iconZwjKey">@drawable/sym_keyboard_zwj_holo</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -32,5 +32,8 @@
|
|||
<item name="iconDisabledShortcutKey">@drawable/sym_keyboard_voice_off_holo</item>
|
||||
<item name="iconPreviewTabKey">@drawable/sym_keyboard_feedback_tab</item>
|
||||
<item name="iconLanguageSwitchKey">@drawable/sym_keyboard_language_switch</item>
|
||||
<!-- TODO: Needs dedicated black theme ZWNJ and ZWJ icons -->
|
||||
<item name="iconZwnjKey">@drawable/sym_keyboard_zwnj_holo</item>
|
||||
<item name="iconZwjKey">@drawable/sym_keyboard_zwj_holo</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
|
@ -78,11 +78,14 @@
|
|||
latin:styleName="spaceKeyStyle"
|
||||
latin:code="@integer/key_space"
|
||||
latin:keyActionFlags="noKeyPreview" />
|
||||
<!-- U+200C: ZERO WIDTH NON-JOINER
|
||||
U+200D: ZERO WIDTH JOINER -->
|
||||
<key-style
|
||||
latin:styleName="zwnjKeyStyle"
|
||||
latin:keyLabel="‌"
|
||||
latin:moreKeys="‍"
|
||||
latin:keyLabelFlags="hasPopupHint" />
|
||||
latin:code="0x200C"
|
||||
latin:moreKeys="\@icon/zwjKey|‍"
|
||||
latin:keyLabelFlags="hasPopupHint"
|
||||
latin:keyActionFlags="noKeyPreview" />
|
||||
<key-style
|
||||
latin:styleName="smileyKeyStyle"
|
||||
latin:keyLabel=":-)"
|
||||
|
|
|
@ -77,11 +77,14 @@
|
|||
latin:styleName="spaceKeyStyle"
|
||||
latin:code="@integer/key_space"
|
||||
latin:keyActionFlags="noKeyPreview" />
|
||||
<!-- U+200C: ZERO WIDTH NON-JOINER
|
||||
U+200D: ZERO WIDTH JOINER -->
|
||||
<key-style
|
||||
latin:styleName="zwnjKeyStyle"
|
||||
latin:keyLabel="‌"
|
||||
latin:moreKeys="‍"
|
||||
latin:keyLabelFlags="hasPopupHint" />
|
||||
latin:code="0x200C"
|
||||
latin:moreKeys="\@icon/zwjKey|‍"
|
||||
latin:keyLabelFlags="hasPopupHint"
|
||||
latin:keyActionFlags="noKeyPreview" />
|
||||
<key-style
|
||||
latin:styleName="smileyKeyStyle"
|
||||
latin:keyLabel=":-)"
|
||||
|
|
|
@ -107,11 +107,15 @@
|
|||
latin:code="@integer/key_space"
|
||||
latin:keyActionFlags="noKeyPreview|enableLongPress"
|
||||
latin:backgroundType="functional" />
|
||||
<!-- U+200C: ZERO WIDTH NON-JOINER
|
||||
U+200D: ZERO WIDTH JOINER -->
|
||||
<key-style
|
||||
latin:styleName="zwnjKeyStyle"
|
||||
latin:keyLabel="‌"
|
||||
latin:moreKeys="‍"
|
||||
latin:code="0x200C"
|
||||
latin:keyIcon="iconZwnjKey"
|
||||
latin:moreKeys="\@icon/zwjKey|‍"
|
||||
latin:keyLabelFlags="hasPopupHint"
|
||||
latin:keyActionFlags="noKeyPreview"
|
||||
latin:backgroundType="functional" />
|
||||
<key-style
|
||||
latin:styleName="shortcutKeyStyle"
|
||||
|
@ -129,8 +133,6 @@
|
|||
latin:keyActionFlags="noKeyPreview|altCodeWhileTyping|enableLongPress"
|
||||
latin:altCode="@integer/key_space"
|
||||
latin:backgroundType="functional" />
|
||||
<!-- U+200C: "" ZERO WIDTH NON-JOINER
|
||||
U+200D: "" ZERO WIDTH JOINER -->
|
||||
<key-style
|
||||
latin:styleName="tabKeyStyle"
|
||||
latin:code="@integer/key_tab"
|
||||
|
|
|
@ -30,7 +30,7 @@ public class KeyboardIconsSet {
|
|||
|
||||
// The value should be aligned with the enum value of Key.keyIcon.
|
||||
public static final int ICON_UNDEFINED = 0;
|
||||
private static final int NUM_ICONS = 14;
|
||||
private static final int NUM_ICONS = 16;
|
||||
|
||||
private final Drawable[] mIcons = new Drawable[NUM_ICONS + 1];
|
||||
|
||||
|
@ -58,6 +58,8 @@ public class KeyboardIconsSet {
|
|||
addIconIdMap(12, "disabledShortcurKey", R.styleable.Keyboard_iconDisabledShortcutKey);
|
||||
addIconIdMap(13, "previewTabKey", R.styleable.Keyboard_iconPreviewTabKey);
|
||||
addIconIdMap(14, "languageSwitchKey", R.styleable.Keyboard_iconLanguageSwitchKey);
|
||||
addIconIdMap(15, "zwnjKey", R.styleable.Keyboard_iconZwnjKey);
|
||||
addIconIdMap(16, "zwjKey", R.styleable.Keyboard_iconZwjKey);
|
||||
}
|
||||
|
||||
private static void addIconIdMap(int iconId, String name, int attrId) {
|
||||
|
|
Loading…
Reference in New Issue