Created
February 9, 2014 08:10
-
-
Save oguya/8896005 to your computer and use it in GitHub Desktop.
load different layouts depending on screensize
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
if((getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_LARGE) == Configuration.SCREENLAYOUT_SIZE_LARGE){ | |
//load a large screen layout | |
}else{ | |
//load a default screen layout | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment