public class Keyboard extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Keyboard.Key |
static class |
Keyboard.Row |
| Modifier and Type | Field and Description |
|---|---|
static int |
EDGE_BOTTOM |
static int |
EDGE_LEFT |
static int |
EDGE_RIGHT |
static int |
EDGE_TOP |
static int |
KEYCODE_ALT |
static int |
KEYCODE_CANCEL |
static int |
KEYCODE_DELETE |
static int |
KEYCODE_DONE |
static int |
KEYCODE_MODE_CHANGE |
static int |
KEYCODE_SHIFT |
| Constructor and Description |
|---|
Keyboard(Context context,
int xmlLayoutResId) |
Keyboard(Context context,
int layoutTemplateResId,
CharSequence characters,
int columns,
int horizontalPadding) |
Keyboard(Context context,
int xmlLayoutResId,
int modeId) |
Keyboard(Context context,
int xmlLayoutResId,
int modeId,
int width,
int height) |
| Modifier and Type | Method and Description |
|---|---|
protected Keyboard.Key |
createKeyFromXml(Resources res,
Keyboard.Row parent,
int x,
int y,
XmlResourceParser parser) |
protected Keyboard.Row |
createRowFromXml(Resources res,
XmlResourceParser parser) |
int |
getHeight() |
protected int |
getHorizontalGap() |
protected int |
getKeyHeight() |
List<Keyboard.Key> |
getKeys() |
protected int |
getKeyWidth() |
int |
getMinWidth() |
List<Keyboard.Key> |
getModifierKeys() |
int[] |
getNearestKeys(int x,
int y) |
int |
getShiftKeyIndex() |
protected int |
getVerticalGap() |
boolean |
isShifted() |
protected void |
setHorizontalGap(int gap) |
protected void |
setKeyHeight(int height) |
protected void |
setKeyWidth(int width) |
boolean |
setShifted(boolean shiftState) |
protected void |
setVerticalGap(int gap) |
public static final int EDGE_LEFT
public static final int EDGE_RIGHT
public static final int EDGE_TOP
public static final int EDGE_BOTTOM
public static final int KEYCODE_SHIFT
public static final int KEYCODE_MODE_CHANGE
public static final int KEYCODE_CANCEL
public static final int KEYCODE_DONE
public static final int KEYCODE_DELETE
public static final int KEYCODE_ALT
public Keyboard(Context context, int xmlLayoutResId)
public Keyboard(Context context, int xmlLayoutResId, int modeId, int width, int height)
public Keyboard(Context context, int xmlLayoutResId, int modeId)
public Keyboard(Context context, int layoutTemplateResId, CharSequence characters, int columns, int horizontalPadding)
public List<Keyboard.Key> getKeys()
public List<Keyboard.Key> getModifierKeys()
protected int getHorizontalGap()
protected void setHorizontalGap(int gap)
protected int getVerticalGap()
protected void setVerticalGap(int gap)
protected int getKeyHeight()
protected void setKeyHeight(int height)
protected int getKeyWidth()
protected void setKeyWidth(int width)
public int getHeight()
public int getMinWidth()
public boolean setShifted(boolean shiftState)
public boolean isShifted()
public int getShiftKeyIndex()
public int[] getNearestKeys(int x,
int y)
protected Keyboard.Row createRowFromXml(Resources res, XmlResourceParser parser)
protected Keyboard.Key createKeyFromXml(Resources res, Keyboard.Row parent, int x, int y, XmlResourceParser parser)
Copyright © 2008-2013. All Rights Reserved.