Hide keyboard when showing DialogFragment on tablet?

In your DialogFragment onCreateView() add the following:

public View onCreateView(LayoutInflater inflater, ViewGroup container,
                    Bundle savedInstanceState)
{
 View view = super.onCreateView( inflater, container, savedInstanceState );
 //to hide keyboard when showing dialog fragment
 getDialog().getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_HIDDEN);
 return view;
}

This should solve your problem

android:windowSoftInputMode="stateHidden"

or

android:windowSoftInputMode="stateUnchanged"