# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: XML Attrs | Fields | Ctors | Inherited Methods

# Keyboard.Row

`public static class Keyboard.Row`
`extends Object` ``

java.lang.Object
↳ | 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.

### Fields
`public int` | `defaultHeight` Default height of a key in this row.
`public int` | `defaultHorizontalGap` Default horizontal gap between keys in this row.
`public int` | `defaultWidth` Default width of a key in this row.
`public int` | `mode` The keyboard mode for this row
`public int` | `rowEdgeFlags` Edge flags for this row of keys.
`public int` | `verticalGap` Vertical gap following this row.

### Public constructors
`Row(Keyboard parent)`
`Row(Resources res, Keyboard parent, XmlResourceParser parser)`

### Inherited methods
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## XML attributes

### android:horizontalGap

Default horizontal gap between keys.

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

Default height of a key, in pixels or percentage of display width.

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

Default width of a key, in pixels or percentage of display width.

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

Mode of the keyboard. If the mode doesn't match the requested keyboard mode, the row will be skipped.

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

Row edge flags.

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.
top | 4 | Row is anchored to the top of the keyboard.

### android:verticalGap

Default vertical gap between rows of keys.

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.

## Fields

### defaultHeight

    public int defaultHeight

Default height of a key in this row.

### defaultHorizontalGap

    public int defaultHorizontalGap

Default horizontal gap between keys in this row.

### defaultWidth

    public int defaultWidth

Default width of a key in this row.

### mode

    public int mode

The keyboard mode for this row

### rowEdgeFlags

    public int rowEdgeFlags

Edge flags for this row of keys. Possible values that can be assigned are `EDGE_TOP` and `EDGE_BOTTOM`

### verticalGap

    public int verticalGap

Vertical gap following this row.

## Public constructors

### Row

    public Row (Keyboard parent)

Parameters
`parent` | `Keyboard`

### Row

    public Row (Resources res,
                    Keyboard parent,
                    XmlResourceParser parser)

Parameters
`res` | `Resources`
`parent` | `Keyboard`
`parser` | `XmlResourceParser`

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*