android软银盘始终显示,并显示在焦点上
时间:2015-07-04 02:02:10
收藏:0
阅读:183
android软银盘始终显示,并显示在焦点上
//强制显示软银盘
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
//edittext默认焦点
getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);
//edittext默认焦点
scanbill.setFocusable(true);
scanbill.requestFocus();
scanbill.setFocusableInTouchMode(true);
原文:http://www.blogjava.net/fiele/archive/2015/07/03/426027.html
评论(0)