My Problem is that . “I am using BottomSheetDialogFragment in my activity, the dialog shows full height in portrait mode but doesn’t when I switch to landscape mode.” dandar3/android-support-design
Eclipse library project based on Android support design AAR releases. - dandar3/android-support-designgithub.com the solution for this issue is. @Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
view.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
public void onGlobalLayout() {
BottomSheetDialog dialog = (BottomSheetDialog) getDialog();