Я работаю на заказ Клавиатура ПрименениеКак установить свой фон ключей для Android пользовательских клавиатуры
Это код цвета фона input.xml
в softkeyboard: -
@Override
public View onCreateInputView() {
Log.e("onStartInputView ","On StartInput View Called--");
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);
String Backgroundcolour = preferences.getString("BackgroundColour","");
Log.e("Brithnesss- -","----"+Backgroundcolour);
if(Backgroundcolour.equalsIgnoreCase("black"))
{
this.mInputView = (KeyboardView) getLayoutInflater().inflate(
R.layout.input, null);
}else
{
this.mInputView = (KeyboardView) getLayoutInflater().inflate(
R.layout.input1, null);
//this.mInputView.setB
}
this.mInputView.setOnKeyboardActionListener(this);
this.mInputView.setKeyboard(this.mQwertyKeyboard);
return this.mInputView;
}
@Override public void onStartInputView(EditorInfo attribute, boolean restarting) {
super.onStartInputView(attribute, restarting);
// Apply the selected keyboard to the input view.
setInputView(onCreateInputView());
}
Я не получаю, как установить фоновое изображение для определенного ключа.
См. Это http://stackoverflow.com/questions/15789997/how-to-ch ange-background-color-of-key-for-android-soft-keyboard –
Я не получаю эту форму, так что, пожалуйста, сообщите, как бы я установил разные цветовые клавиши? – user
Мне нужно установить фон для конкретного ключевого фона вместо того же ключевого фонового изображения для всей клавиатуры. Мне нужно срочно – user