Created
October 29, 2013 12:32
-
-
Save seemike/7213794 to your computer and use it in GitHub Desktop.
android: set size of the dialog window
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void onStart() { | |
super.onStart(); | |
Log.d(LOG_TAG, "onStart"); | |
if(null == getDialog()) return; | |
int dialogWidth = 300; | |
int dialogHeight = 400; | |
getDialog().getWindow().setLayout(dialogWidth, dialogHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the size parameters of the layout file are ignored.
see http://adilatwork.blogspot.de/2012/11/android-dialogfragment-dialog-sizing.html