summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2019-05-02 16:30:25 -0700
committerSunny Goyal <sunnygoyal@google.com>2019-05-02 16:30:36 -0700
commit4cd79876ac073de75c8505ee8a1adee3c2d7e8a6 (patch)
tree135c60c55f08421230b914b029b69b5b85a94015 /res
parent6a2c585073eef4867b9d32e5735f4228d7a788d7 (diff)
downloadandroid_packages_apps_Trebuchet-4cd79876ac073de75c8505ee8a1adee3c2d7e8a6.tar.gz
android_packages_apps_Trebuchet-4cd79876ac073de75c8505ee8a1adee3c2d7e8a6.tar.bz2
android_packages_apps_Trebuchet-4cd79876ac073de75c8505ee8a1adee3c2d7e8a6.zip
Adding support for overriding hotseat Widget
Bug: 131360075 Change-Id: I94151cb2987d7decea283790ab9e87cb4627d40c
Diffstat (limited to 'res')
-rw-r--r--res/layout/hotseat.xml24
-rw-r--r--res/layout/launcher.xml8
2 files changed, 26 insertions, 6 deletions
diff --git a/res/layout/hotseat.xml b/res/layout/hotseat.xml
new file mode 100644
index 000000000..82b0b8d74
--- /dev/null
+++ b/res/layout/hotseat.xml
@@ -0,0 +1,24 @@
+<?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.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ 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"
+ 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:importantForAccessibility="no"
+ launcher:containerType="hotseat" /> \ No newline at end of file
diff --git a/res/layout/launcher.xml b/res/layout/launcher.xml
index 6ecc1f55d..cca899bda 100644
--- a/res/layout/launcher.xml
+++ b/res/layout/launcher.xml
@@ -39,13 +39,9 @@
launcher:pageIndicator="@+id/page_indicator" />
<!-- DO NOT CHANGE THE ID -->
- <com.android.launcher3.Hotseat
+ <include
android:id="@+id/hotseat"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:theme="@style/HomeScreenElementTheme"
- android:importantForAccessibility="no"
- launcher:containerType="hotseat" />
+ layout="@layout/hotseat" />
<include
android:id="@+id/overview_panel"