I am little confused.
At first, when I create a toolbar and it get overlapped by status bar, I just add fitSysmtemWindow="true"
in parent XML and it work just fine.
But when I create FullScreen DialogFragment
, It get overlapped by status bar too. I tried to add fitSystemWindow="true"
and it doesn't work.
Only present on android 5.0+. Didn't set status bar to translucent anywhere.
Here my DialogFragment code
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_create_bill_dialog,container, false);
return view;
}
@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
Dialog dialog = super.onCreateDialog(savedInstanceState);
dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
return dialog;
}
Thanks.Sorry for my bad Eng.