I know how to create a keyboard from a xml file,looks like the following:
<Row>
<Key android:codes="113"android:keyLabel="q"android:keyEdgeFlags="left"/>
<Key android:codes="119" android:keyLabel="w"/>
<Key android:codes="101" android:keyLabel="e"/>
......
but I want to use a custom layout,like this:
<LinearLayout ......>
<Button android:id="@+id/key_q" .../>
<Button android:id="@+id/key_w" .../>
</LinearLayout>
How can I make the button as a key?