| 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.
      
| 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 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           | 
         defaultHeight | Default height of a key in this row. | |||||||||
| 
           | 
         defaultHorizontalGap | Default horizontal gap between keys in this row. | |||||||||
| 
           | 
         defaultWidth | Default width of a key in this row. | |||||||||
| 
           | 
         mode | The keyboard mode for this row | |||||||||
| 
           | 
         rowEdgeFlags | Edge flags for this row of keys. | |||||||||
| 
           | 
         verticalGap | Vertical gap following this row. | |||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 
           | 
         
           | 
        ||||||||||
| 
           | 
         
           | 
        ||||||||||
| 
          
           [Expand]
          
           
           Inherited Methods
           
          | 
        |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
          
            
          
          From class
          
           java.lang.Object
          
           | 
        |||||||||||
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), 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.
        
         This may also be a reference to a resource (in the form
"
         
          @[
          
           package
          
          :]
          
           type
          
          :
          
           name
          
         
         ") or
theme attribute (in the form
"
         
          ?[
          
           package
          
          :][
          
           type
          
          :]
          
           name
          
         
         ")
containing a value of this type.
        
         This corresponds to the global attribute
          resource symbol
         
          
           horizontalGap
          
         
         .
        
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), 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.
        
         This may also be a reference to a resource (in the form
"
         
          @[
          
           package
          
          :]
          
           type
          
          :
          
           name
          
         
         ") or
theme attribute (in the form
"
         
          ?[
          
           package
          
          :][
          
           type
          
          :]
          
           name
          
         
         ")
containing a value of this type.
        
         This corresponds to the global attribute
          resource symbol
         
          
           keyHeight
          
         
         .
        
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), 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.
        
         This may also be a reference to a resource (in the form
"
         
          @[
          
           package
          
          :]
          
           type
          
          :
          
           name
          
         
         ") or
theme attribute (in the form
"
         
          ?[
          
           package
          
          :][
          
           type
          
          :]
          
           name
          
         
         ")
containing a value of this type.
        
         This corresponds to the global attribute
          resource symbol
         
          
           keyWidth
          
         
         .
        
Mode of the keyboard. If the mode doesn't match the requested keyboard mode, the row will be skipped.
         Must be a reference to another resource, in the form "
         
          @[+][
          
           package
          
          :]
          
           type
          
          :
          
           name
          
         
         "
or to a theme attribute in the form "
         
          ?[
          
           package
          
          :][
          
           type
          
          :]
          
           name
          
         
         ".
        
         This corresponds to the global attribute
          resource symbol
         
          
           keyboardMode
          
         
         .
        
Row edge flags.
Must be one or more (separated by '|') of the following constant values.
| Constant | Value | Description | 
|---|---|---|
           
            top
           
           | 
          4 | Row is anchored to the top of the keyboard. | 
           
            bottom
           
           | 
          8 | Row is anchored to the bottom of the keyboard. | 
         This corresponds to the global attribute
          resource symbol
         
          
           rowEdgeFlags
          
         
         .
        
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), 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.
        
         This may also be a reference to a resource (in the form
"
         
          @[
          
           package
          
          :]
          
           type
          
          :
          
           name
          
         
         ") or
theme attribute (in the form
"
         
          ?[
          
           package
          
          :][
          
           type
          
          :]
          
           name
          
         
         ")
containing a value of this type.
        
         This corresponds to the global attribute
          resource symbol
         
          
           verticalGap
          
         
         .
        
Default horizontal gap between keys in this row.
         Edge flags for this row of keys. Possible values that can be assigned are
         
          
           EDGE_TOP
          
         
         and
         
          
           EDGE_BOTTOM