Add empty view in PhotoPicker
- Use the device default theme
- Support empty view in AutoFitRecyclerView
- Add empty view in TabFragment
Test: video on the bug
Test: atest NoItemsTest
Bug: 195913683
Change-Id: Ifedcc3a3deb529ce613e98fdbc8c8391e7fe57c6
diff --git a/res/drawable/ic_artwork_camera.xml b/res/drawable/ic_artwork_camera.xml
new file mode 100644
index 0000000..dc22c49
--- /dev/null
+++ b/res/drawable/ic_artwork_camera.xml
@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2021 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="120dp"
+ android:height="80dp"
+ android:viewportWidth="120"
+ android:viewportHeight="80">
+ <path
+ android:pathData="M96,14m-8,0a8,8 0,1 1,16 0a8,8 0,1 1,-16 0"
+ android:fillColor="#EA4335"/>
+ <path
+ android:pathData="M8,14h104v64h-104z"
+ android:fillColor="#DADCE0"/>
+ <path
+ android:pathData="M16,10h16v4h-16z"
+ android:fillColor="#5F6368"/>
+ <path
+ android:strokeWidth="1"
+ android:pathData="M60,48m-25.5,0a25.5,25.5 0,1 1,51 0a25.5,25.5 0,1 1,-51 0"
+ android:fillColor="#DADCE0"
+ android:strokeColor="#5F6368"/>
+ <path
+ android:pathData="M60,48m-20,0a20,20 0,1 1,40 0a20,20 0,1 1,-40 0"
+ android:fillColor="#BDC1C6"/>
+</vector>