: 당신은 단순히 호출 할 수 있습니다 귀하의 활동에
public class UIUtils {
public static boolean isHoneycomb() {
// Can use static final constants like HONEYCOMB, declared in later versions
// of the OS since they are inlined at compile time. This is guaranteed behavior.
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB;
}
public static boolean isHoneycombTablet(Context context) {
// Can use static final constants like HONEYCOMB, declared in later versions
// of the OS since they are inlined at compile time. This is guaranteed behavior.
return isHoneycomb() && (context.getResources().getConfiguration().screenLayout
& Configuration.SCREENLAYOUT_SIZE_MASK)
== Configuration.SCREENLAYOUT_SIZE_XLARGE;
}
}
는
if (!UIUtils.isHoneycombTablet(this)) {
requestWindowFeature(Window.FEATURE_NO_TITLE);
}
완벽한 덕분에 일했다 – Bobbake4