Reputation: 10349
The XML attribute android:windowSoftInputMode
for an activity in manifest file is available. Is there any related Java method for same attribute ?
For getting same functionality I tried InputMethodManager
methods like (hide, show, toggle, etc.) but those are not working.
If anybody know Java method for windowSoftInputMode attribute please reply me.
Thank you.
Upvotes: 2
Views: 4131
Reputation: 20041
//you can use this line
getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
Upvotes: 10