Skip to content

Instantly share code, notes, and snippets.

@oguya
Created February 9, 2014 08:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oguya/8896005 to your computer and use it in GitHub Desktop.
Save oguya/8896005 to your computer and use it in GitHub Desktop.
load different layouts depending on screensize
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