How to change background color or theme of keys dynamically in Custom Keyboard Android

后端 未结 2 975
栀梦
栀梦 2021-01-06 16:04

I am working on Custom keyboard app I need to set or change background theme or color of keyboard .their setting.xml view in my app where user can select different backgrou

2条回答
  •  心在旅途
    2021-01-06 16:28

    When the keyboard is shown, the framework calls onStartInputView. You can program that function to look at the values of the shared preferences and set the colors/themes appropriately on the keyboard view.

提交回复
热议问题