Reputation: 1606
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
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