I've followed the examples on developer.android.com regarding Input Methods and played with the SoftKeyboard sample application. These together give more than enough information regarding the creation of simple keyboard.
I made popup keyboard using "android:popupKeyboard".
<Row android:keyHeight="@dimen/key_height"
    android:id="@+id/label"
>
    <Key android:codes="97" android:keyLabel="a" android:horizontalGap="@dimen/horizontal_border_gap" 
            android:keyEdgeFlags="left" android:keyBackground="@drawable/key_btn_l" android:popupKeyboard="@xml/popup"/>
    <Key android:codes="115" android:keyLabel="s" android:keyBackground="@drawable/key_btn_l"/>
    <Key android:codes="100" android:keyLabel="d" android:keyBackground="@drawable/key_btn_l"/>
    <Key android:codes="102" android:keyLabel="f" android:keyBackground="@drawable/key_btn_a"/>
    <Key android:codes="103" android:keyLabel="g" android:keyBackground="@drawable/key_btn_l" android:popupKeyboard="@xml/popup"/>
    <Key android:codes="104" android:keyLabel="h" android:keyBackground="@drawable/key_btn_a"/>
    <Key android:codes="106" android:keyLabel="j" android:keyBackground="@drawable/key_btn_a"/>
    <Key android:codes="107" android:keyLabel="k" android:keyBackground="@drawable/key_btn_a"/>
    <Key android:codes="108" android:keyLabel="l" android:keyBackground="@drawable/key_btn_l"/>
    <Key android:codes="45" android:keyLabel="-" android:keyEdgeFlags="right" android:keyBackground="@drawable/key_btn_a"/>
</Row>
I have question about popup.
- I wish show popup center of keyboard. but popup is shown near pressed key. is there any idea for showing popup at center of keyboard? 
- when long press the key, the popup is shown. I wish show popup when short press. there is any idea? 
If anyone knows solution, please help me.
 
    