When Focus Edittext ,edittext Didnot Pop Out The Softkeyboard
Yes.It is my question.When I using edittext in my layout.when I focus or touch the Edittext,them didnot pop out the soft keyboard. this is my layout: ```
Solution 1:
Remove android:descendantFocusability="blocksDescendants" from your LinearLayout.
I tried your code, it worked.
Hope it helps.
EDIT :
Explaination:the attribute android:descendantFocusability="blocksDescendants" simply blocks your LinearLayoutto give focus to the decendant view .
Decendants of LinearLayout= all the child views of LinearLayout
Solution 2:
You can try this..
<activityandroid:name="Activity"android:windowSoftInputMode="adjustPan"/>Solution 3:
Use this code in the point where you want to display the keyboard (may be in oCreate?)
EditText mEditText= (EditText) findViewById(R.id.editTextName-);
((InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE))
.showSoftInput(mEditText, InputMethodManager.SHOW_FORCED);
Post a Comment for "When Focus Edittext ,edittext Didnot Pop Out The Softkeyboard"