ITeye博客

acitvitygroup edittext 软盘弹出时 底部菜单挤压到上面的问题

liangoogle · 2012-03-31 17:28 · android 控件 · 移动开发 · Markdown

userName = (EditText) layout.findViewById(R.id.username);
  //TODO 显示软盘 使用EditText的getContext
   InputMethodManager imm = (InputMethodManager)userName.getContext(). getSystemService(Context.INPUT_METHOD_SERVICE);
        imm.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALWAYS);

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。