admin
2022-01-28 760aee20870a34e6130a1c12237c5b747e2b00bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.lcjian.library.widget;
 
import android.content.Context;
import android.content.res.Configuration;
 
/**
 * Created by weikou2015 on 2016/12/15.
 */
 
public class IsPad {
    public static boolean isPad(Context context) {
        return (context.getResources().getConfiguration().screenLayout
                & Configuration.SCREENLAYOUT_SIZE_MASK)
                >= Configuration.SCREENLAYOUT_SIZE_LARGE;
    }
}