引入布局后添加软键盘设置项即可
setContentView(R.layout.note_edit_activity); getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);