Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

get height of a dialog fragment android

Dialog mDialog = dialogFragment.getDialog();

int height=mDialog.getWindow().getDecorView().getHeight();
int width=mDialog.getWindow().getDecorView().getWidth();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #height #dialog #fragment #android
ADD COMMENT
Topic
Name
1+1 =