The Digital Ad Venture
The Digital Ad Venture

Reputation: 1606

custom keyboard expands edittext to half of the screen

is there any way to avoid a custom keyboard resizing my edittext to half of the screen.

is use this command

               editTextKeyboard = new EditText(this);

    editTextKeyboard.requestFocus();
    editTextKeyboard.setAlpha(0);
    editTextKeyboard.setSingleLine();

    editTextKeyboard.setFocusableInTouchMode(true);
    //editTextKeyboard.setVisibility(View.INVISIBLE);


    addContentView(editTextKeyboard, layoutParamsCompleteLayout);

it also changes the alpha level.

would be glad for any support

Upvotes: 2

Views: 1537

Answers (1)

user1087919
user1087919

Reputation:

use android:imeOptions:flagNoFullscreen in xml file or use editTextKeyboard.setImeOptions(EditorInfo.IME_FLAG_NO_FULLSCREEN)

Here is link for reference 1)link1 2)link2

Upvotes: 4

Related Questions