TuanAnh207
TuanAnh207

Reputation: 90

Android softkeyboard size

I am developing a softkeyboard for android with custom layout. It means i don't use the KeyboardView, i just create a new input method service and in the onCreateInputView i inflate my custom layout then implement onTouchListener for child views. I want my custom softkeyboard height take 70% of the screen size. I try to set the layoutparams for my view but it is not affected.

public View onCreateInputView() {
    // TODO Auto-generated method stub
    keyboardLayout = getLayoutInflater().inflate(R.layout.full_keyboard, null);
            // Then here i set the height of the keyboard layout
            .....
}

My questions is whether the android system take control of the softkeyboard size. If yes, is there any work-around solution for that.

Thank you very much!

Upvotes: 2

Views: 712

Answers (1)

Avanish Singh
Avanish Singh

Reputation: 777

Go to your res->values\dimens.xml and change your key_height;

eg- <dimen name="key_height">70dip</dimen>

Upvotes: 1

Related Questions