Custom keyboard keytext shadow remove

I used a custom keyboard app from sdk and changed it according to my requirements, but I could not change two things

  • remove the shadow from the key text of each key on the keyboard. as I did not find any property in the xml layout that I could use

  • I used a special layout for keyopreview, which is displayed in a popup when we press any key on the keyboard, but I do not want to show a preview of some specific keys, such as space, enter, shift, back, etc. how can i remove keypriview only for those keys.

enter image description here

+5
source share
1 answer

Well, I found the answer.

Well, in the keyboard view xml put android:shadowRadius="0.0"

 <?xml version="1.0" encoding="utf-8"?> <android.inputmethodservice.KeyboardView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/keyboard_view" ... android:shadowRadius="0.0" /> 
+22
source

All Articles