Thanks for this guide.
Does anyone know how to modify the background of the CAPS key:
by default it has a green light when you call keyboard.setShift(true). But when I added the following to modify the look of the keys to keyboard.xml:
And keyboardbutton.xml:
Now the CAPS key does not have the green light when enabled, how can I specify a different background for this key when it is enabled?
Does anyone know how to modify the background of the CAPS key:
Code:
<Key android:codes="-1" android:keyLabel="CAPS" android:keyEdgeFlags="left"/>
Code:
android:keyBackground="@drawable/keyboardbutton"
Code:
<selector xmlns:android="hxxp://schemas.android.com/apk/res/android">
<item android:drawable="@drawable/mykeypressed" android:state_selected="true"></item>
<item android:drawable="@drawable/mykeypressed" android:state_pressed="true"></item>
<item android:drawable="@drawable/mykey"></item>
</selector>
Now the CAPS key does not have the green light when enabled, how can I specify a different background for this key when it is enabled?