android.inputmethodservice
Class Keyboard

java.lang.Object
  extended by android.inputmethodservice.Keyboard

public class Keyboard
extends Object


Nested Class Summary
static class Keyboard.Key
           
static class Keyboard.Row
           
 
Field Summary
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 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)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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)
Method Detail

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.