1 activity内部有EditText,那已进入此界面就会弹出软键盘,要想不弹软键盘怎么办
android:windowSoftInputMode="stateAlwaysHidden"
Fragment 相关
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (isVisibleToUser) {
//相当于Fragment的onResume
} else {
//相当于Fragment的onPause
}
}