I made alertDialog using Builder and asigned layout to it like this:
View view2 = LayoutInflater.from(getContext()).inflate(R.layout.information_dialog_layout, null);
AlertDialog alertDialog = new AlertDialog.Builder(getContext(), R.style.ert).create();
alertDialog.setView(view2);
alertDialog.show();
but can not retrive dialogs height in px, tryed 'Rect' class as well but didn't help (may be setting that one wrong though)...? P.S I've looked up some of the answer to similar problem here on StackOverflow but none of those work for me:s