I am implementing custom keyboard on Android. I have just read documentation on "developer.android.com" and seen sample with soft keyboard. All I can - it`s to change keyboard background, change placement of buttons, set keyIcon instead of keyLabel to key.
But I still can not change key`s background and color.
Please write some sample code of XML or source. Thanks!
My sample where I change background:
public class GBInput extends InputMethodService implements KeyboardView.OnKeyboardActionListener{
...
private GBKeyboardView mInputView;
@Override
public View onCreateInputView() {
mInputView = (GBKeyboardView) getLayoutInflater().inflate(R.layout.input, null);
mInputView.setOnKeyboardActionListener(this);
mInputView.setKeyboard(mQwertyKeyboard);
mInputView.setBackgroundResource(R.color.keyboard_background);
return mInputView;
}
...
}
And I need something like that :
Images for all buttons - its bad idea, so I want to find better issue.