I am looking for a way to get size of a custom dialog. I went through this question, but the only answer given is pretty useless, because if I try mDialog.getWindow().
mDialog.getWindow().
Give it a try:
mDialog.getWindow().getDecorView().getHeight()