起始空两格 在代码中控制: StringBuilder.append("\t\t").append(text);
软键盘自动弹出:
sear_edts.setFocusable(true);
sear_edts.setFocusableInTouchMode(true);
sear_edts.requestFocus();
InputMethodManager imm = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
imm.showSoftInput(sear_edts, InputMethodManager.RESULT_SHOWN);
imm.toggleSoftInput(InputMethodManager.SHOW_FORCED,InputMethodManager.HIDE_IMPLICIT_ONLY);
软键盘自动关闭:
InputMethodManager imm2 = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
imm2.hideSoftInputFromWindow(sear_edts.getWindowToken(), 0);