Keyboard
open class Keyboard
Content copied to clipboard
Loads an XML description of a keyboard and stores the attributes of the keys. A keyboard consists of rows of keys.
The layout file for a keyboard contains XML that looks like the following snippet:
<Keyboard
android:keyWidth="%10p"
android:keyHeight="50px"
android:horizontalGap="2px"
android:verticalGap="2px" >
<Row android:keyWidth="32px" >
<Key android:keyLabel="A" />
...
</Row>
...
</Keyboard>
Constructors
Keyboard
Link copied to clipboard
open fun Keyboard(context: Context, layoutTemplateResId: Int, characters: CharSequence, columns: Int, horizontalPadding: Int)
Content copied to clipboard
Creates a blank keyboard from the given resource file and populates it with the specified characters in left-to-right, top-to-bottom fashion, using the specified number of columns.
Types
Functions
getKeys
Link copied to clipboard
getMinWidth
Link copied to clipboard
getModifierKeys
Link copied to clipboard
getNearestKeys
Link copied to clipboard
getShiftKeyIndex
Link copied to clipboard
getShiftKeyIndices
Link copied to clipboard
setShifted
Link copied to clipboard
Properties
EDGE_BOTTOM
Link copied to clipboard
EDGE_RIGHT
Link copied to clipboard
KEYCODE_ALT
Link copied to clipboard
KEYCODE_CANCEL
Link copied to clipboard
KEYCODE_DELETE
Link copied to clipboard
KEYCODE_DONE
Link copied to clipboard
KEYCODE_MODE_CHANGE
Link copied to clipboard
KEYCODE_SHIFT
Link copied to clipboard