My problem happens only on Android 4.4 Kitkat and when I show a dialog fragment, part top of it will be overlapped by status bar. How can I deal with this issue? It's a Kitkat bug?
See screenshot here:
Thanks
My problem happens only on Android 4.4 Kitkat and when I show a dialog fragment, part top of it will be overlapped by status bar. How can I deal with this issue? It's a Kitkat bug?
See screenshot here:
Thanks
Dialog choiceDialog = new Dialog(this);
choiceDialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
Window window = choiceDialog.getWindow();
int y = findViewById(R.id.bannerview).getTop();
WindowManager.LayoutParams lp = window.getAttributes();
lp.y = y;
lp.dimAmount = 0;`enter code here`
lp.windowAnimations = android.R.anim.fade_in;
window.setAttributes(lp);
choiceDialog.setContentView(R.layout.conversation_action_dialog);
i did this to show dialog but its not a dialog fragment may helps u