Support swipe tabs and animation
- Add TabContainerFragment to support swiping different tabFragments
- Add the fade in/out animation on the tabFragment
- Use TabLayout to support swipe tabs
Fix the bold issue on Chip
- Update the text size of the chip to 14sp
- Fix clear the back stacks issue
- Remove unused resources
- Update top round corner to 28dp
- Update top margin of the drag bar to 16dp
Bug: 207318082
Bug: 189736678
Test: atest com.android.providers.media.photopicker.espresso
Change-Id: I95d078c61af264d760a209219bb2af96b2657ce1
diff --git a/res/drawable/picker_tab_indicator.xml b/res/drawable/picker_tab_indicator.xml
new file mode 100644
index 0000000..626472f
--- /dev/null
+++ b/res/drawable/picker_tab_indicator.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2022 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.
+-->
+
+<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
+ <item android:gravity="center">
+ <shape android:shape="rectangle">
+ <size
+ android:width="@dimen/picker_tab_width"
+ android:height="@dimen/picker_tab_height" />
+ <corners android:radius="@dimen/picker_tab_radius"/>
+ <solid android:color="?attr/pickerSelectedTabBackgroundColor"/>
+ </shape>
+ </item>
+</layer-list>