OSDN Git Service

Update asset for no search result image
authorFan Zhang <zhfan@google.com>
Wed, 29 Nov 2017 18:53:37 +0000 (10:53 -0800)
committerandroid-build-team Robot <android-build-team-robot@google.com>
Thu, 14 Dec 2017 21:14:17 +0000 (21:14 +0000)
Bug: 68863351
Test: visual
Change-Id: Ia4d411e5d7d1db8b321fdfde006a93c6ff52ecb3
(cherry picked from commit cb721bd870f73af7e156076f5fe57314436a5312)
(cherry picked from commit 8fe9c25e35e50d9c26c78ee78c0210c4c12705a2)

res/drawable-hdpi/empty_search_results.png [deleted file]
res/drawable-mdpi/empty_search_results.png [deleted file]
res/drawable-xhdpi/empty_search_results.png [deleted file]
res/drawable-xxhdpi/empty_search_results.png [deleted file]
res/drawable-xxxhdpi/empty_search_results.png [deleted file]
res/drawable/empty_search_results.xml [new file with mode: 0644]
res/layout/search_panel.xml

diff --git a/res/drawable-hdpi/empty_search_results.png b/res/drawable-hdpi/empty_search_results.png
deleted file mode 100644 (file)
index 6202a33..0000000
Binary files a/res/drawable-hdpi/empty_search_results.png and /dev/null differ
diff --git a/res/drawable-mdpi/empty_search_results.png b/res/drawable-mdpi/empty_search_results.png
deleted file mode 100644 (file)
index e418d7c..0000000
Binary files a/res/drawable-mdpi/empty_search_results.png and /dev/null differ
diff --git a/res/drawable-xhdpi/empty_search_results.png b/res/drawable-xhdpi/empty_search_results.png
deleted file mode 100644 (file)
index a92f000..0000000
Binary files a/res/drawable-xhdpi/empty_search_results.png and /dev/null differ
diff --git a/res/drawable-xxhdpi/empty_search_results.png b/res/drawable-xxhdpi/empty_search_results.png
deleted file mode 100644 (file)
index 4c549bc..0000000
Binary files a/res/drawable-xxhdpi/empty_search_results.png and /dev/null differ
diff --git a/res/drawable-xxxhdpi/empty_search_results.png b/res/drawable-xxxhdpi/empty_search_results.png
deleted file mode 100644 (file)
index 1aed6ad..0000000
Binary files a/res/drawable-xxxhdpi/empty_search_results.png and /dev/null differ
diff --git a/res/drawable/empty_search_results.xml b/res/drawable/empty_search_results.xml
new file mode 100644 (file)
index 0000000..9162107
--- /dev/null
@@ -0,0 +1,30 @@
+<?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.
+  -->
+
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+    android:width="96dp"
+    android:height="96dp"
+    android:viewportWidth="24"
+    android:viewportHeight="24"
+    android:tint="?android:attr/colorControlNormal">
+
+    <path
+        android:fillColor="#000000"
+        android:pathData="M15.5,14h-0.79l-0.28-0.27c1.2-1.4,1.82-3.31,1.48-5.34c-0.47-2.78-2.79-5-5.59-5.34c-4.23-0.52-7.79,3.04-7.27,7.27
+c0.34,2.8,2.56,5.12,5.34,5.59c2.03,0.34,3.94-0.28,5.34-1.48L14,14.71v0.79l5.2,5.19c0.41,0.41,1.07,0.41,1.48,0l0.01-0.01
+c0.41-0.41,0.41-1.07,0-1.48L15.5,14z M9.5,14C7.01,14,5,11.99,5,9.5S7.01,5,9.5,5S14,7.01,14,9.5S11.99,14,9.5,14z" />
+</vector>
\ No newline at end of file
index 48a1d4c..b8e7ae1 100644 (file)
@@ -85,8 +85,8 @@
                 android:layout_height="?android:attr/actionBarSize"/>
 
             <ImageView
-                android:layout_height="160dp"
-                android:layout_width="160dp"
+                android:layout_height="wrap_content"
+                android:layout_width="wrap_content"
                 android:layout_gravity="center_horizontal"
                 android:src="@drawable/empty_search_results"/>