am b3ac25f1: am 4deb824f: Add navigateEmoji

* commit 'b3ac25f1d9150ab47fd1184515ec5a8b39290451':
  Add navigateEmoji
main
Satoshi Kataoka 2013-10-09 20:59:29 -07:00 committed by Android Git Automerger
commit 72facc170b
4 changed files with 99 additions and 1 deletions

View File

@ -413,6 +413,7 @@
</attr> </attr>
<attr name="navigateNext" format="boolean" /> <attr name="navigateNext" format="boolean" />
<attr name="navigatePrevious" format="boolean" /> <attr name="navigatePrevious" format="boolean" />
<attr name="navigateEmoji" format="boolean" />
<attr name="passwordInput" format="boolean" /> <attr name="passwordInput" format="boolean" />
<attr name="clobberSettingsKey" format="boolean" /> <attr name="clobberSettingsKey" format="boolean" />
<attr name="shortcutKeyEnabled" format="boolean" /> <attr name="shortcutKeyEnabled" format="boolean" />

View File

@ -23,9 +23,11 @@
> >
<!-- Navigate more keys style --> <!-- Navigate more keys style -->
<switch> <switch>
<!-- navigateEmoji="false" -->
<case <case
latin:imeAction="actionNext" latin:imeAction="actionNext"
latin:navigatePrevious="true" latin:navigatePrevious="true"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" latin:styleName="navigateMoreKeysStyle"
@ -35,6 +37,7 @@
<case <case
latin:imeAction="actionNext" latin:imeAction="actionNext"
latin:navigatePrevious="false" latin:navigatePrevious="false"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" /> latin:styleName="navigateMoreKeysStyle" />
@ -42,6 +45,7 @@
<case <case
latin:imeAction="actionPrevious" latin:imeAction="actionPrevious"
latin:navigateNext="true" latin:navigateNext="true"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" latin:styleName="navigateMoreKeysStyle"
@ -51,6 +55,7 @@
<case <case
latin:imeAction="actionPrevious" latin:imeAction="actionPrevious"
latin:navigateNext="false" latin:navigateNext="false"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" /> latin:styleName="navigateMoreKeysStyle" />
@ -59,6 +64,7 @@
<case <case
latin:navigateNext="true" latin:navigateNext="true"
latin:navigatePrevious="true" latin:navigatePrevious="true"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" latin:styleName="navigateMoreKeysStyle"
@ -68,6 +74,7 @@
<case <case
latin:navigateNext="true" latin:navigateNext="true"
latin:navigatePrevious="false" latin:navigatePrevious="false"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" latin:styleName="navigateMoreKeysStyle"
@ -77,13 +84,100 @@
<case <case
latin:navigateNext="false" latin:navigateNext="false"
latin:navigatePrevious="true" latin:navigatePrevious="true"
latin:navigateEmoji="false"
> >
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" latin:styleName="navigateMoreKeysStyle"
latin:keyLabelFlags="hasPopupHint|preserveCase" latin:keyLabelFlags="hasPopupHint|preserveCase"
latin:moreKeys="!text/action_previous_as_more_key" /> latin:moreKeys="!text/action_previous_as_more_key" />
</case> </case>
<!-- naviagteNext="false" and navigatePrevious="false" --> <case
latin:navigateNext="false"
latin:navigatePrevious="false"
latin:navigateEmoji="false"
>
<key-style
latin:styleName="navigateMoreKeysStyle" />
</case>
<!-- navigateEmoji="true" -->
<case
latin:imeAction="actionNext"
latin:navigatePrevious="true"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:keyLabelFlags="hasPopupHint|preserveCase"
latin:moreKeys="!fixedColumnOrder!2,!needsDividers!,!text/emoji_key_as_more_key,!text/action_previous_as_more_key" />
</case>
<case
latin:imeAction="actionNext"
latin:navigatePrevious="false"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:moreKeys="!text/emoji_key_as_more_key" />
</case>
<case
latin:imeAction="actionPrevious"
latin:navigateNext="true"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:keyLabelFlags="hasPopupHint|preserveCase"
latin:moreKeys="!fixedColumnOrder!2,!needsDividers!,!text/emoji_key_as_more_key,!text/action_next_as_more_key" />
</case>
<case
latin:imeAction="actionPrevious"
latin:navigateNext="false"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:moreKeys="!text/emoji_key_as_more_key" />
</case>
<!-- imeAction!="actionNext" and imeAction!="actionPrevious" -->
<case
latin:navigateNext="true"
latin:navigatePrevious="true"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:keyLabelFlags="hasPopupHint|preserveCase"
latin:moreKeys="!fixedColumnOrder!3,!needsDividers!,!text/emoji_key_as_more_key,!text/action_previous_as_more_key,!text/action_next_as_more_key" />
</case>
<case
latin:navigateNext="true"
latin:navigatePrevious="false"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:keyLabelFlags="hasPopupHint|preserveCase"
latin:moreKeys="!fixedColumnOrder!2,!needsDividers!,!text/emoji_key_as_more_key,!text/action_next_as_more_key" />
</case>
<case
latin:navigateNext="false"
latin:navigatePrevious="true"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:keyLabelFlags="hasPopupHint|preserveCase"
latin:moreKeys="!fixedColumnOrder!2,!needsDividers!,!text/emoji_key_as_more_key,!text/action_previous_as_more_key" />
</case>
<case
latin:navigateNext="false"
latin:navigatePrevious="false"
latin:navigateEmoji="true"
>
<key-style
latin:styleName="navigateMoreKeysStyle"
latin:moreKeys="!text/emoji_key_as_more_key" />
</case>
<default> <default>
<key-style <key-style
latin:styleName="navigateMoreKeysStyle" /> latin:styleName="navigateMoreKeysStyle" />

View File

@ -251,6 +251,7 @@ public final class KeyboardTextsSet {
/* 146 */ "more_keys_for_single_quote", /* 146 */ "more_keys_for_single_quote",
/* 147 */ "more_keys_for_double_quote", /* 147 */ "more_keys_for_double_quote",
/* 148 */ "more_keys_for_tablet_double_quote", /* 148 */ "more_keys_for_tablet_double_quote",
/* 149 */ "emoji_key_as_more_key",
}; };
private static final String EMPTY = ""; private static final String EMPTY = "";
@ -439,6 +440,7 @@ public final class KeyboardTextsSet {
/* 146 */ "!fixedColumnOrder!5,!text/single_quotes,!text/single_angle_quotes", /* 146 */ "!fixedColumnOrder!5,!text/single_quotes,!text/single_angle_quotes",
/* 147 */ "!fixedColumnOrder!5,!text/double_quotes,!text/double_angle_quotes", /* 147 */ "!fixedColumnOrder!5,!text/double_quotes,!text/double_angle_quotes",
/* 148 */ "!fixedColumnOrder!6,!text/double_quotes,!text/single_quotes,!text/double_angle_quotes,!text/single_angle_quotes", /* 148 */ "!fixedColumnOrder!6,!text/double_quotes,!text/single_quotes,!text/double_angle_quotes,!text/single_angle_quotes",
/* 149 */ "!icon/emoji_key|!code/key_emoji",
}; };
/* Language af: Afrikaans */ /* Language af: Afrikaans */

View File

@ -246,4 +246,5 @@
<string name="more_keys_for_single_quote">!fixedColumnOrder!5,!text/single_quotes,!text/single_angle_quotes</string> <string name="more_keys_for_single_quote">!fixedColumnOrder!5,!text/single_quotes,!text/single_angle_quotes</string>
<string name="more_keys_for_double_quote">!fixedColumnOrder!5,!text/double_quotes,!text/double_angle_quotes</string> <string name="more_keys_for_double_quote">!fixedColumnOrder!5,!text/double_quotes,!text/double_angle_quotes</string>
<string name="more_keys_for_tablet_double_quote">!fixedColumnOrder!6,!text/double_quotes,!text/single_quotes,!text/double_angle_quotes,!text/single_angle_quotes</string> <string name="more_keys_for_tablet_double_quote">!fixedColumnOrder!6,!text/double_quotes,!text/single_quotes,!text/double_angle_quotes,!text/single_angle_quotes</string>
<string name="emoji_key_as_more_key">!icon/emoji_key|!code/key_emoji</string>
</resources> </resources>