switch (getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK) { case Configuration.SCREENLAYOUT_SIZE_SMALL: break; case Configuration.SCREENLAYOUT_SIZE_NORMAL: break; case Configuration.SCREENLAYOUT_SIZE_LARGE: break; case Configuration.SCREENLAYOUT_SIZE_XLARGE: break; }
取得裝置螢幕的大小類型
週四, 2013-03-21 15:46
#1
取得裝置螢幕的大小類型