Browse Source

1.修改hotseat颜色

FailedToRead 1 month ago
parent
commit
0641bb65b0

+ 4 - 5
1100_r48/Code/res/layout/hotseat.xml

@@ -1,5 +1,4 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2019 The Android Open Source Project
+<?xml version="1.0" encoding="utf-8"?><!-- Copyright (C) 2019 The Android Open Source Project
 
      Licensed under the Apache License, Version 2.0 (the "License");
      you may not use this file except in compliance with the License.
@@ -13,12 +12,12 @@
      See the License for the specific language governing permissions and
      limitations under the License.
 -->
-<com.android.launcher3.Hotseat
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.launcher3.Hotseat xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:launcher="http://schemas.android.com/apk/res-auto"
     android:id="@+id/hotseat"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:theme="@style/HomeScreenElementTheme"
+    android:background="#FFA07A"
     android:importantForAccessibility="no"
+    android:theme="@style/HomeScreenElementTheme"
     launcher:containerType="hotseat" />

+ 3 - 3
1100_r48/Code/res/layout/launcher.xml

@@ -12,8 +12,7 @@
      See the License for the specific language governing permissions and
      limitations under the License.
 -->
-<com.android.launcher3.LauncherRootView
-    xmlns:android="http://schemas.android.com/apk/res/android"
+<com.android.launcher3.LauncherRootView xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:launcher="http://schemas.android.com/apk/res-auto"
     android:id="@+id/launcher"
     android:layout_width="match_parent"
@@ -41,7 +40,8 @@
         <!-- DO NOT CHANGE THE ID -->
         <include
             android:id="@+id/hotseat"
-            layout="@layout/hotseat" />
+            layout="@layout/hotseat"
+            android:visibility="gone" />
 
         <include
             android:id="@+id/overview_panel"

+ 1 - 1
1100_r48/Code/src/com/android/launcher3/Launcher.java

@@ -438,7 +438,7 @@ public class Launcher extends StatefulActivity<LauncherState> implements Launche
         TextView tv = new TextView(this);
         tv.setText("自定义Launcher3_1100r48");
         tv.setTextColor(Color.RED);
-        tv.setTextSize(30);
+        tv.setTextSize(50);
 
         getRootView().addView(tv);
         getRootView().dispatchInsets();