android.inputmethodservice
Class Keyboard
java.lang.Object
android.inputmethodservice.Keyboard
public class Keyboard
- extends Object
Constructor Summary |
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EDGE_LEFT
public static final int EDGE_LEFT
- See Also:
- Constant Field Values
EDGE_RIGHT
public static final int EDGE_RIGHT
- See Also:
- Constant Field Values
EDGE_TOP
public static final int EDGE_TOP
- See Also:
- Constant Field Values
EDGE_BOTTOM
public static final int EDGE_BOTTOM
- See Also:
- Constant Field Values
KEYCODE_SHIFT
public static final int KEYCODE_SHIFT
- See Also:
- Constant Field Values
KEYCODE_MODE_CHANGE
public static final int KEYCODE_MODE_CHANGE
- See Also:
- Constant Field Values
KEYCODE_CANCEL
public static final int KEYCODE_CANCEL
- See Also:
- Constant Field Values
KEYCODE_DONE
public static final int KEYCODE_DONE
- See Also:
- Constant Field Values
KEYCODE_DELETE
public static final int KEYCODE_DELETE
- See Also:
- Constant Field Values
KEYCODE_ALT
public static final int KEYCODE_ALT
- See Also:
- Constant Field Values
Keyboard
public Keyboard(Context context,
int xmlLayoutResId)
Keyboard
public Keyboard(Context context,
int xmlLayoutResId,
int modeId,
int width,
int height)
Keyboard
public Keyboard(Context context,
int xmlLayoutResId,
int modeId)
Keyboard
public Keyboard(Context context,
int layoutTemplateResId,
CharSequence characters,
int columns,
int horizontalPadding)
getKeys
public List<Keyboard.Key> getKeys()
getModifierKeys
public List<Keyboard.Key> getModifierKeys()
getHorizontalGap
protected int getHorizontalGap()
setHorizontalGap
protected void setHorizontalGap(int gap)
getVerticalGap
protected int getVerticalGap()
setVerticalGap
protected void setVerticalGap(int gap)
getKeyHeight
protected int getKeyHeight()
setKeyHeight
protected void setKeyHeight(int height)
getKeyWidth
protected int getKeyWidth()
setKeyWidth
protected void setKeyWidth(int width)
getHeight
public int getHeight()
getMinWidth
public int getMinWidth()
setShifted
public boolean setShifted(boolean shiftState)
isShifted
public boolean isShifted()
getShiftKeyIndex
public int getShiftKeyIndex()
getNearestKeys
public int[] getNearestKeys(int x,
int y)
createRowFromXml
protected Keyboard.Row createRowFromXml(Resources res,
XmlResourceParser parser)
createKeyFromXml
protected Keyboard.Key createKeyFromXml(Resources res,
Keyboard.Row parent,
int x,
int y,
XmlResourceParser parser)
Copyright © 2008-2012. All Rights Reserved.