summaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-11-21 14:12:00 -0800
committerSunny Goyal <sunnygoyal@google.com>2018-12-04 20:19:14 -0800
commitef92b8277896890c61cab7e945144c5689ce9151 (patch)
tree93b85c0ebd406b59a4e466adbdfa2b46eae9e64f /res/layout
parentaa576bce0251e2be646603c6d2fccd896c5ca5f8 (diff)
downloadandroid_packages_apps_Trebuchet-ef92b8277896890c61cab7e945144c5689ce9151.tar.gz
android_packages_apps_Trebuchet-ef92b8277896890c61cab7e945144c5689ce9151.tar.bz2
android_packages_apps_Trebuchet-ef92b8277896890c61cab7e945144c5689ce9151.zip
Adding support for launcher preview generation
Creating a utility class which generates a launcher preview for a provided InvariantDeviceProfile Bug: 118758696 Change-Id: I0aebeb6eed37f72edd1cc305e58eece305aae3ff
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/launcher_preview_layout.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/res/layout/launcher_preview_layout.xml b/res/layout/launcher_preview_layout.xml
new file mode 100644
index 000000000..3fd02e3fd
--- /dev/null
+++ b/res/layout/launcher_preview_layout.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 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.InsettableFrameLayout
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:launcher="http://schemas.android.com/apk/res-auto"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+
+ <com.android.launcher3.CellLayout
+ android:id="@+id/workspace"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_gravity="top|left"
+ android:theme="@style/HomeScreenElementTheme"
+ launcher:containerType="workspace"
+ launcher:pageIndicator="@+id/page_indicator"/>
+
+ <com.android.launcher3.Hotseat
+ android:id="@+id/hotseat"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:importantForAccessibility="no"
+ android:theme="@style/HomeScreenElementTheme"
+ launcher:containerType="hotseat" />
+
+ <com.android.launcher3.InsettableFrameLayout
+ android:id="@+id/apps_view"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent" >
+
+ <include
+ android:id="@id/search_container_all_apps"
+ layout="@layout/search_container_all_apps"/>
+
+ </com.android.launcher3.InsettableFrameLayout>
+
+</com.android.launcher3.InsettableFrameLayout> \ No newline at end of file