Actually if you want your entire layout pan up than you should use :
SOFT_INPUT_ADJUST_PAN
meaning:
getActivity().getWindow().setSoftInputMode(
WindowManager.LayoutParams.SOFT_INPUT_ADJUST_PAN);
this will keep the keyboard closed and when opened it’ll push your entire activity up.