Have a look at 
KeyboardView<https://developer.android.com/reference/android/inputmethodservice/KeyboardView.html>.
 
You define the keyboard using a XML file like this:

<Keyboard xmlns:android="http://schemas.android.com/apk/res/android";
    android:keyHeight="50dp"
    android:keyWidth="16.66%p" >

    <Row>
        <Key
            android:codes="8"
            android:keyLabel="1" />
...

Then, in code, all you need to do is set the keyboard and set a keyboard 
listener to handle key presses.
If you manage to get the right keycodes for all keys, then you only need to 
implement this part to make it work:

    protected class KeyboardListener implements OnKeyboardActionListener {

        @Override
        public void onKey(int primaryCode, int[] keyCodes) {
            long eventTime = System.currentTimeMillis();

            KeyEvent event = new KeyEvent(eventTime, eventTime,
                    KeyEvent.ACTION_DOWN, primaryCode, 0, 0, 0, 0,
                    KeyEvent.FLAG_SOFT_KEYBOARD | 
KeyEvent.FLAG_KEEP_TOUCH_MODE);

            getActivity().dispatchKeyEvent(event);
        }
...
}

Terça-feira, 26 de Junho de 2012 17:21:38 UTC+1, Harish escreveu:
>
> Hello Friends,
>  
> For my Android tablet application I'm looking a customize keyboard, 
> customize in the sense I have many list view in my application and to 
> filter data in list I need keyboard with just 26 letter and 9 number,(list 
> will only have character or numbers)
> I see many post where people are trying to develop entire keyboard, 
> however I'm looking for some solution where I can control keys of existing 
> keyboard. 
> I do not wants to enter in complexity of handling input methods or writing 
> some thing complex.
> I see that in numeric keyboard it's possible to give keys which we wants 
> to show, is there any similar solution where I can just give list of keys I 
> wants to show,
>  
> appreciate any help
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to