Key

constructor(parent: Keyboard.Row)

Create an empty key with no attributes.


constructor(res: Resources, parent: Keyboard.Row, x: Int, y: Int, parser: XmlResourceParser)

Create a key with the given top-left coordinate and extract its attributes from the XML parser.

Parameters

res

resources associated with the caller's context

parent

the row that this key belongs to. The row must already be attached to a Keyboard.

x

the x coordinate of the top-left

y

the y coordinate of the top-left

parser

the XML parser containing the attributes for this key