2014-01-21 1 views

답변

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

태블릿이 "화면 채우기로 확대/축소"모드 일 때는 작동하지 않습니다. – Shlomi

관련 문제