在代码中设置布局隐藏,不进行布局设置
diff --git a/android/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java b/android/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
old mode 100644
new mode 100755
index 380c6b1..b1f7b7c
--- a/android/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
+++ b/android/packages/apps/Launcher3/src/com/android/launcher3/DeviceProfile.java
@@ -471,7 +471,7 @@ public class DeviceProfile {
// Horizontal search bar space
lp.gravity = Gravity.TOP|Gravity.CENTER_HORIZONTAL;
}
- searchBar.setLayoutParams(lp);
+ searchBar.setVisibility(View.GONE);
// Layout the workspace
PagedView workspace = (PagedView) launcher.findViewById(R.id.workspace);