- public static boolean isTablet(Context context) {
- return (context.getResources().getConfiguration().screenLayout
- & Configuration.SCREENLAYOUT_SIZE_MASK)
- >= Configuration.SCREENLAYOUT_SIZE_LARGE;
- }
- //该片段来自于http://www.codesnippet.cn/detail/2906201512953.html
来源: http://www.codesnippet.cn/detail/2906201512953.html