is X Large Tablet - Android Hardware

Android examples for Hardware:Tablet

Description

is X Large Tablet

Demo Code


//package com.java2s;
import android.content.Context;
import android.content.res.Configuration;

public class Main {
    private static boolean isXLargeTablet(Context context) {
        return (context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_XLARGE;
    }/* www . j a  v  a 2 s  .  com*/
}

Related Tutorials