private static boolean isXLargeTablet(Context context) {
        return (context.getResources().getConfiguration().screenLayout
                & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_XLARGE;
    }
Helper method to determine if the device has an extra-large screen. For
example, 10" tablets are extra-large.
app/src/main/java/home/smart/fly/animations/SettingsActivity.java