Android判断是否平板的方法如下:

public static boolean isTablet(Context context) {
return (context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) >= Configuration.SCREENLAYOUT_SIZE_LARGE;
}

更多相关文章

  1. Google为Android平板电脑提供了新的媒体娱乐空间
  2. 工业平板电脑在医院自助设备中的广泛应用
  3. google nexus 10 用fastboot 刷机教程 (官方原版rom)
  4. 台式机完美体验Android(安卓)4.3 平板电脑
  5. android GridView 长按事件不管用
  6. Ubuntu下 AndroidStudio 无法识别设备(手机/平板)的问题 , 多设备可
  7. 平板上只能竖着启动app,横着打不开
  8. android 4.0 升级名单
  9. Android(安卓)环境配置常见的两个错误

随机推荐

  1. 一种 Android(安卓)应用内全局获取 Conte
  2. Android studio+真机 运行报错[INSTALL_F
  3. 在RelativeLayout布局中可以设置标签的an
  4. 转:android 电话流程分析
  5. [2015-06-10 20:53:50 - Android SDK] Er
  6. android webview 抓网页
  7. Android的断点设置
  8. android GPS定位 详解(7)
  9. concat_ws, spilt, sort_array,size
  10. Android与H5互调使用cordova的WebView,插