Home | History | Annotate | Download | only in inputmethodservice

Lines Matching refs:Keyboard

39  * Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard
41 * <p>The layout file for a keyboard contains XML that looks like the following snippet:</p>
43 * &lt;Keyboard
53 * &lt;/Keyboard&gt;
60 public class Keyboard {
62 static final String TAG = "Keyboard";
64 // Keyboard XML Tags
65 private static final String TAG_KEYBOARD = "Keyboard";
81 /** Keyboard label **/
96 /** Is the keyboard in the shifted state */
105 /** Current key width, while loading the keyboard */
108 /** Current key height, while loading the keyboard */
111 /** Total height of the keyboard, including the padding and keys */
115 * Total width of the keyboard, including left side gaps and keys, but not any gaps on the
120 /** List of keys in this keyboard */
126 /** Width of the screen available to fit the keyboard */
132 /** Keyboard mode, or zero, if none. */
148 * Container for keys in the keyboard. All keys in a row are at the same Y-coordinate.
149 * Some of the key size defaults can be overridden per row from what the {@link Keyboard}
169 * {@link Keyboard#EDGE_TOP EDGE_TOP} and {@link Keyboard#EDGE_BOTTOM EDGE_BOTTOM}
173 /** The keyboard mode for this row */
176 private Keyboard parent;
178 public Row(Keyboard parent) {
182 public Row(Resources res, Keyboard parent, XmlResourceParser parser) {
185 com.android.internal.R.styleable.Keyboard);
208 * Class for describing the position and characteristics of a single key in the keyboard.
247 /** X coordinate of the key in the keyboard layout */
249 /** Y coordinate of the key in the keyboard layout */
261 * Flags that specify the anchoring to edges of the keyboard for detecting touch events
263 * {@link Keyboard#EDGE_LEFT}, {@link Keyboard#EDGE_RIGHT}, {@link Keyboard#EDGE_TOP} and
264 * {@link Keyboard#EDGE_BOTTOM}.
269 /** The keyboard that this key belongs to */
270 private Keyboard keyboard;
272 * If this key pops up a mini keyboard, this is the resource id for the XML layout for that
273 * keyboard.
309 keyboard = parent.parent;
320 * a {@link Keyboard}.
332 com.android.internal.R.styleable.Keyboard);
336 keyboard.mDisplayWidth, parent.defaultWidth);
339 keyboard.mDisplayHeight, parent.defaultHeight);
342 keyboard.mDisplayWidth, parent.defaultHorizontalGap);
500 * Creates a keyboard from the given xml key layout file.
502 * @param xmlLayoutResId the resource file that contains the keyboard layout and keys.
504 public Keyboard(Context context, int xmlLayoutResId) {
509 * Creates a keyboard from the given xml key layout file. Weeds out rows
510 * that have a keyboard mode defined but don't match the specified mode.
512 * @param xmlLayoutResId the resource file that contains the keyboard layout and keys.
513 * @param modeId keyboard mode identifier
515 public Keyboard(Context context, int xmlLayoutResId, int modeId) {
519 //Log.v(TAG, "keyboard's display metrics:" + dm);
532 * <p>Creates a blank keyboard from the given resource file and populates it with the specified
535 * <p>If the specified number of columns is -1, then the keyboard will fit as many keys as
539 * @param characters the list of characters to display on the keyboard. One key will be created
543 * keyboard will fit as many keys as possible in each row.
545 public Keyboard(Context context, int layoutTemplateResId,
624 * Returns the total height of the keyboard
625 * @return the total height of the keyboard
786 com.android.internal.R.styleable.Keyboard);