We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66869a9 commit 1895443Copy full SHA for 1895443
utilcode/src/main/java/com/blankj/utilcode/util/ScreenUtils.java
@@ -174,4 +174,13 @@ public static int getSleepDuration() {
174
return -123;
175
}
176
177
+
178
+ /**
179
+ * Check if the device is a tablet based on screen size
180
+ *
181
+ * @return {@code true}: Yes<br>{@code false}: No
182
+ */
183
+ public static boolean isTablet() {
184
+ return Utils.getContext().getResources().getBoolean(R.bool.isTablet);
185
+ }
186
0 commit comments