Row
open classRow
| kotlin.Any | |
| ↳ | android.inputmethodservice.Keyboard.Row |
Container for keys in the keyboard. All keys in a row are at the same Y-coordinate. Some of the key size defaults can be overridden per row from what the Keyboard defines.
Summary
| XML attributes | |
|---|---|
android:horizontalGap |
Default horizontal gap between keys. |
android:keyHeight |
Default height of a key, in pixels or percentage of display width. |
android:keyWidth |
Default width of a key, in pixels or percentage of display width. |
android:keyboardMode |
Mode of the keyboard. |
android:rowEdgeFlags |
Row edge flags. |
android:verticalGap |
Default vertical gap between rows of keys. |
| Public constructors | |
|---|---|
Row(res: Resources!, parent: Keyboard!, parser: XmlResourceParser!) |
|
| Properties | |
|---|---|
| Int |
Default height of a key in this row. |
| Int |
Default horizontal gap between keys in this row. |
| Int |
Default width of a key in this row. |
| Int |
The keyboard mode for this row |
| Int |
Edge flags for this row of keys. |
| Int |
Vertical gap following this row. |
XML attributes
android:horizontalGap
android:horizontalGapMay be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.
android:keyHeight
android:keyHeightMay be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.
android:keyWidth
android:keyWidthMay be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.
android:keyboardMode
android:keyboardModeMay be a reference to another resource, in the form "@[+][package:]type/name" or a theme attribute in the form "?[package:]type/name".
android:rowEdgeFlags
android:rowEdgeFlagsMust be one or more (separated by '|') of the following constant values.
| Constant | Value | Description |
|---|---|---|
| bottom | 8 | Row is anchored to the bottom of the keyboard. {@deprecated Copy this definition into your own application project.} |
| top | 4 | Row is anchored to the top of the keyboard. {@deprecated Copy this definition into your own application project.} |
android:verticalGap
android:verticalGapMay be a dimension value, which is a floating point number appended with a unit such as "14.5sp". Available units are: px (pixels), dp (density-independent pixels), sp (scaled pixels based on preferred font size), in (inches), and mm (millimeters).
May be a fractional value, which is a floating point number appended with either % or %p, such as "14.5%". The % suffix always means a percentage of the base size; the optional %p suffix provides a size relative to some parent container.
Public constructors
Properties
defaultHeight
vardefaultHeight: Int
Deprecated: Deprecated in Java.
Default height of a key in this row.
defaultHorizontalGap
vardefaultHorizontalGap: Int
Deprecated: Deprecated in Java.
Default horizontal gap between keys in this row.
defaultWidth
vardefaultWidth: Int
Deprecated: Deprecated in Java.
Default width of a key in this row.
mode
varmode: Int
Deprecated: Deprecated in Java.
The keyboard mode for this row
rowEdgeFlags
varrowEdgeFlags: Int
Deprecated: Deprecated in Java.
Edge flags for this row of keys. Possible values that can be assigned are EDGE_TOP and EDGE_BOTTOM
verticalGap
varverticalGap: Int
Deprecated: Deprecated in Java.
Vertical gap following this row.