summaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorMario Bertschler <bmario@google.com>2017-12-08 14:08:35 -0800
committerMario Bertschler <bmario@google.com>2017-12-08 14:51:22 -0800
commit846ba918ff94d5e74c6c9ca1237736d7fce289f8 (patch)
treeefd28bf8c45ac03371cfed2df21c565c4bd9b13d /res
parentb74ac8d3a1454e31ebe1ad9b2e2dc04b2d0e69ee (diff)
downloadandroid_packages_apps_Trebuchet-846ba918ff94d5e74c6c9ca1237736d7fce289f8.tar.gz
android_packages_apps_Trebuchet-846ba918ff94d5e74c6c9ca1237736d7fce289f8.tar.bz2
android_packages_apps_Trebuchet-846ba918ff94d5e74c6c9ca1237736d7fce289f8.zip
Separating predictionrowview into a separate layout file.
This enables overriding the predictions_view file. Change-Id: Ie42ce37e1bcd3c3c7b51e0e734e7c01a6f9b9a98
Diffstat (limited to 'res')
-rw-r--r--res/layout/all_apps.xml5
-rw-r--r--res/layout/predictions_view.xml19
2 files changed, 20 insertions, 4 deletions
diff --git a/res/layout/all_apps.xml b/res/layout/all_apps.xml
index 6750c72a4..3f6be2c6a 100644
--- a/res/layout/all_apps.xml
+++ b/res/layout/all_apps.xml
@@ -39,10 +39,7 @@
android:clipToPadding="false"
android:layout_below="@id/search_container_all_apps" >
- <com.android.launcher3.allapps.PredictionRowView
- android:id="@+id/header_content"
- android:layout_width="match_parent"
- android:layout_height="wrap_content" />
+ <include layout="@layout/predictions_view" android:id="@+id/header_content" />
<include layout="@layout/all_apps_divider"
android:id="@+id/divider"
diff --git a/res/layout/predictions_view.xml b/res/layout/predictions_view.xml
new file mode 100644
index 000000000..280290c6a
--- /dev/null
+++ b/res/layout/predictions_view.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2017 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.allapps.PredictionRowView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" /> \ No newline at end of file