开发者

How to show a soft-keyboard when EditText is selected?

I tried using the accepted answer here but this does not work for me!

开发者_高级运维android - show soft keyboard on demand

Any advice is appreciated :)


how about this:

 activity.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);


This line of code (which seems so obvious now) did the trick:

editText.clearFocus();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜