|
32 | 32 | <attr name="action_next" format="boolean"/> |
33 | 33 | </declare-styleable> |
34 | 34 |
|
35 | | - <!-- additional key types that can be used to make themes interesting --> |
36 | | - <!-- can auto-detect these, but allow keyboard layout to set some, such as --> |
37 | | - <!-- punctuation, navigation, numeric, symbol, alpha --> |
38 | | - <!-- for auto-detecting, difference between "punctuation" and "symbol" could just --> |
39 | | - <!-- be if the unicode value is above 0x0100, since that's probably close enough --> |
40 | | - <!-- intent is that "functional" type is unchanged, so a shift key is still functional --> |
41 | | - <!-- to ensure backwards compatibility --> |
42 | | - <declare-styleable name="keyType_NOT_SUPPORTED"> |
43 | | - <!-- FOR FUTURE EXPANSION - NOT YET SUPPORTED --> |
44 | | - <attr name="key_type_punctuation" format="boolean"/> |
45 | | - <attr name="key_type_navigation" format="boolean"/> |
46 | | - <attr name="key_type_numeric" format="boolean"/> |
47 | | - <attr name="key_type_symbol" format="boolean"/> |
48 | | - <attr name="key_type_alpha" format="boolean"/> |
49 | | - <attr name="key_type_space" format="boolean"/> |
50 | | - <attr name="key_type_shift" format="boolean"/> |
51 | | - <attr name="key_type_delete" format="boolean"/> |
52 | | - </declare-styleable> |
53 | | - |
54 | | - <declare-styleable name="Keyboard_Key_NOT_SUPPORTED"> |
55 | | - |
56 | | - <!-- FOR FUTURE EXPANSION - NOT YET SUPPORTED --> |
57 | | - |
58 | | - <!-- lets us have lower-case letters as popupCharacters that --> |
59 | | - <!-- aren't affected by state of SHIFT key (e.g., pi) --> |
60 | | - <attr name="shiftedPopupCharacters" format="string"/> |
61 | | - <attr name="shiftedHintLabel" format="string"/> |
62 | | - |
63 | | - <!-- flags the keyboard designer can set to help theme correctly style keys --> |
64 | | - <!-- (though, for the most part, these should be autodetected) --> |
65 | | - <attr name="isPunctuation" format="boolean"/> |
66 | | - <attr name="isNavigation" format="boolean"/> |
67 | | - <!-- should automatically also be "functional" --> |
68 | | - <attr name="isNumeric" format="boolean"/> |
69 | | - <attr name="isSymbol" format="boolean"/> |
70 | | - <attr name="isAlpha" format="boolean"/> |
71 | | - <attr name="isSpace" format="boolean"/> |
72 | | - <attr name="isShift" format="boolean"/> |
73 | | - <!-- should automatically also be "functional" --> |
74 | | - <attr name="isDelete" format="boolean"/> |
75 | | - <!-- should automatically also be "functional" --> |
76 | | - |
77 | | - |
78 | | - <!-- if false, determine position of main key label/icon without accounting for --> |
79 | | - <!-- hint label. this may override the theme (e.g., if auto positioning is used), --> |
80 | | - <!-- but may be needed to make special keys look right --> |
81 | | - <!-- also useful for a short numeric row with highly-related popupCharacters where don't --> |
82 | | - <!-- want to clutter with hints but want main label/icon still centered --> |
83 | | - <!-- e.g., a "1" key that has popupCharacters="¹₁①" --> |
84 | | - <attr name="adjustPosition" format="boolean"/> |
85 | | - |
86 | | - <!-- icon for the hint instead of a label --> |
87 | | - <!-- if icon and label specified, icon wins --> |
88 | | - <attr name="hintIcon" format="reference"/> |
89 | | - |
90 | | - <!-- swipe in different directions on a key to get different codes --> |
91 | | - <!-- suggested to have noHint="true" if using swipe and long-press for keys --> |
92 | | - <attr name="swipeLeftCode" format="string"/> |
93 | | - <attr name="swipeRightCode" format="string"/> |
94 | | - <attr name="swipeUpCode" format="string"/> |
95 | | - <attr name="swipeDownCode" format="string"/> |
96 | | - <!-- labels and icons for the different swipe directions --> |
97 | | - <!-- default to using label or icon based on code --> |
98 | | - <!-- if both icon and label specified, icon wins --> |
99 | | - <attr name="swipeLeftLabel" format="string"/> |
100 | | - <attr name="swipeLeftIcon" format="reference"/> |
101 | | - <attr name="swipeLeftColor" format="color"/> |
102 | | - <attr name="swipeRightLabel" format="string"/> |
103 | | - <attr name="swipeRightIcon" format="reference"/> |
104 | | - <attr name="swipeRightColor" format="color"/> |
105 | | - <attr name="swipeUpLabel" format="string"/> |
106 | | - <attr name="swipeUpIcon" format="reference"/> |
107 | | - <attr name="swipeUpColor" format="color"/> |
108 | | - <attr name="swipeDownLabel" format="string"/> |
109 | | - <attr name="swipeDownIcon" format="reference"/> |
110 | | - <attr name="swipeDownColor" format="color"/> |
111 | | - <!-- size of the swipe labels --> |
112 | | - <attr name="swipeLabelSize" format="dimension"/> |
113 | | - |
114 | | - </declare-styleable> |
115 | | - |
116 | | - <declare-styleable name="AnySoftKeyboardKeyIcons_NOT_SUPPORTED"> |
117 | | - <!-- should support normal, key_type_feedback --> |
118 | | - <attr name="iconKeyNextKeyboard" format="reference"/> |
119 | | - <!-- should support normal, key_type_feedback --> |
120 | | - <attr name="iconKeySymbols" format="reference"/> |
121 | | - <!-- should support normal, key_type_feedback --> |
122 | | - <attr name="iconKeyAlpha" format="reference"/> |
123 | | - <!-- should support normal, android:state_pressed, key_type_feedback, android:state_pressed+key_type_feedback, android:state_checked, state_checked+key_type_feedback --> |
124 | | - <attr name="iconKeyAlt" format="reference"/> |
125 | | - <!-- should support normal, key_type_feedback --> |
126 | | - <attr name="iconKeyNavigation" format="reference"/> |
127 | | - </declare-styleable> |
128 | 35 | </resources> |
0 commit comments