Added in API level 3
Deprecated in API level 29

Row

open class Row
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(parent: Keyboard!)

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:horizontalGap
Default horizontal gap between keys. {@deprecated Copy this definition into your own application project.}

May 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:keyHeight
Default height of a key, in pixels or percentage of display width. {@deprecated Copy this definition into your own application project.}

May 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:keyWidth
Default width of a key, in pixels or percentage of display width. {@deprecated Copy this definition into your own application project.}

May 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:keyboardMode
Mode of the keyboard. If the mode doesn't match the requested keyboard mode, the row will be skipped. {@deprecated Copy this definition into your own application project.}

May 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:rowEdgeFlags
Row edge flags. {@deprecated Copy this definition into your own application project.}

Must 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:verticalGap
Default vertical gap between rows of keys. {@deprecated Copy this definition into your own application project.}

May 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

Row

Added in API level 3
Row(parent: Keyboard!)

Row

Added in API level 3
Row(
    res: Resources!,
    parent: Keyboard!,
    parser: XmlResourceParser!)

Properties

defaultHeight

Added in API level 3
var defaultHeight: Int

Deprecated: Deprecated in Java.

Default height of a key in this row.

defaultHorizontalGap

Added in API level 3
var defaultHorizontalGap: Int

Deprecated: Deprecated in Java.

Default horizontal gap between keys in this row.

defaultWidth

Added in API level 3
var defaultWidth: Int

Deprecated: Deprecated in Java.

Default width of a key in this row.

mode

Added in API level 3
var mode: Int

Deprecated: Deprecated in Java.

The keyboard mode for this row

rowEdgeFlags

Added in API level 3
var rowEdgeFlags: 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

Added in API level 3
var verticalGap: Int

Deprecated: Deprecated in Java.

Vertical gap following this row.