Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private boolean isLandscape() {
- final Resources resources = getResources();
- return resources != null && resources.getConfiguration() != null
- && resources.getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement