定制化launcher3中,平闆由于豎屏顯示不太美觀,是以需要固定橫屏,是以就需要在Launcher.java中來實作固定橫屏功能
1.設定Launche3 固定橫屏
--- a/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
+++ b/packages/apps/Launcher3/src/com/android/launcher3/Launcher.java
@@ -19,7 +19,7 @@ package com.android.launcher3;
import static android.content.pm.ActivityInfo.CONFIG_LOCALE;
import static android.content.pm.ActivityInfo.CONFIG_ORIENTATION;
import static android.content.pm.ActivityInfo.CONFIG_SCREEN_SIZE;
-
+import android.content.pm.ActivityInfo;
import static com.android.launcher3.AbstractF