2

I am working on soft keyboard. I had done with all of my functionality.

But now i just need to change view of key preview when key is pressed. Currently my key preview is shown(default sample keyboard key preview) like shown in below image,

enter image description here

As we can see character 'd' is popped up when key is pressed.

But now i need customize it. As currently key preview background is white, i need it to set green color just like shown below,

enter image description here

I have the sample keyboard code, but couldn't find the place where it show a popout letter. So i can easily edit it customize it my own way.

I googled for help nothing found any help any. Any help is appreciated.

4

2 に答える 2

0

キー XML レイアウトで次のようなものを使用します。

<Key android:codes="97" android:keyIcon="@drawable/key_icon" android:iconPreview="@drawable/key_preview_icon" /> 

それは私のために働いた。これがお役に立てば幸いです:)

于 2014-05-01T19:41:30.987 に答える