Home | History | Annotate | Download | only in openwnn

Lines Matching defs:Keyboard

18  *   frameworks/base/core/java/android/inputmethodservice/Keyboard.java
43 * Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard
45 * <p>The layout file for a keyboard contains XML that looks like the following snippet:</p>
47 * &lt;Keyboard
57 * &lt;/Keyboard&gt;
60 public class Keyboard {
62 static final String TAG = "Keyboard";
64 private static final String TAG_KEYBOARD = "Keyboard";
98 /** Keyboard label **/
113 /** Is the keyboard in the shifted state */
122 /** Current key width, while loading the keyboard */
125 /** Current key height, while loading the keyboard */
128 /** Total height of the keyboard, including the padding and keys */
132 * Total width of the keyboard, including left side gaps and keys, but not any gaps on the
137 /** List of keys in this keyboard */
143 /** Width of the screen available to fit the keyboard */
149 /** Keyboard mode, or zero, if none. */
164 * Container for keys in the keyboard. All keys in a row are at the same Y-coordinate.
165 * Some of the key size defaults can be overridden per row from what the {@link Keyboard}
179 * {@link Keyboard#EDGE_TOP EDGE_TOP} and {@link Keyboard#EDGE_BOTTOM EDGE_BOTTOM}
183 /** The keyboard mode for this row */
186 private Keyboard parent;
189 public Row(Keyboard parent) {
194 public Row(Resources res, Keyboard parent, XmlResourceParser parser) {
197 android.R.styleable.Keyboard);
220 * Class for describing the position and characteristics of a single key in the keyboard.
244 /** X coordinate of the key in the keyboard layout */
246 /** Y coordinate of the key in the keyboard layout */
258 * Flags that specify the anchoring to edges of the keyboard for detecting touch events
260 * {@link Keyboard#EDGE_LEFT}, {@link Keyboard#EDGE_RIGHT}, {@link Keyboard#EDGE_TOP} and
261 * {@link Keyboard#EDGE_BOTTOM}.
266 /** The keyboard that this key belongs to */
267 private Keyboard keyboard;
269 * If this key pops up a mini keyboard, this is the resource id for the XML layout for that
270 * keyboard.
307 keyboard = parent.parent;
318 * a {@link Keyboard}.
330 android.R.styleable.Keyboard);
334 keyboard.mDisplayWidth, parent.defaultWidth);
337 keyboard.mDisplayHeight, parent.defaultHeight);
340 keyboard.mDisplayWidth, parent.defaultHorizontalGap);
518 * Creates a keyboard from the given xml key layout file.
520 * @param xmlLayoutResId the resource file that contains the keyboard layout and keys.
522 public Keyboard(Context context, int xmlLayoutResId) {
527 * Creates a keyboard from the given xml key layout file. Weeds out rows
528 * that have a keyboard mode defined but don't match the specified mode.
530 * @param xmlLayoutResId the resource file that contains the keyboard layout and keys.
531 * @param modeId keyboard mode identifier
533 public Keyboard(Context context, int xmlLayoutResId, int modeId) {
549 * <p>Creates a blank keyboard from the given resource file and populates it with the specified
552 * <p>If the specified number of columns is -1, then the keyboard will fit as many keys as
556 * @param characters the list of characters to display on the keyboard. One key will be created
560 * keyboard will fit as many keys as possible in each row.
562 public Keyboard(Context context, int layoutTemplateResId,
601 * Get the list of keys in this keyboard.
651 * Returns the total height of the keyboard
652 * @return the total height of the keyboard
659 * Returns the total minimum width of the keyboard
660 * @return the total minimum width of the keyboard
667 * Sets the keyboard to be shifted.
669 * @param shiftState the keyboard shift state.
684 * Returns whether keyboard is shift state or not.
686 * @return {@code true} if keyboard is shift state; otherwise, {@code false}.
832 android.R.styleable.Keyboard);