1<?xml version="1.0" encoding="utf-8"?><!-- 2 ~ Copyright (C) 2024 The Android Open Source Project 3 ~ 4 ~ Licensed under the Apache License, Version 2.0 (the "License"); 5 ~ you may not use this file except in compliance with the License. 6 ~ You may obtain a copy of the License at 7 ~ 8 ~ http://www.apache.org/licenses/LICENSE-2.0 9 ~ 10 ~ Unless required by applicable law or agreed to in writing, software 11 ~ distributed under the License is distributed on an "AS IS" BASIS, 12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 ~ See the License for the specific language governing permissions and 14 ~ limitations under the License. 15 --> 16<androidx.constraintlayout.motion.widget.MotionLayout 17 xmlns:android="http://schemas.android.com/apk/res/android" 18 xmlns:app="http://schemas.android.com/apk/res-auto" 19 android:id="@+id/preview_tabs" 20 android:layout_width="match_parent" 21 android:layout_height="wrap_content" 22 app:layoutDescription="@xml/preview_tabs_motion_scene"> 23 24 <FrameLayout 25 android:id="@+id/primary_tab" 26 android:layout_width="wrap_content" 27 android:layout_height="wrap_content" 28 app:layout_constraintStart_toStartOf="@+id/guideline_center" 29 app:layout_constraintEnd_toEndOf="@+id/guideline_center" 30 app:layout_constraintTop_toTopOf="parent" 31 app:layout_constraintBottom_toBottomOf="parent" 32 android:layout_marginHorizontal="8dp"> 33 <TextView 34 android:id="@+id/primary_tab_text" 35 android:layout_width="wrap_content" 36 android:layout_height="wrap_content" 37 android:background="@drawable/small_preview_tab_background_selected" 38 android:layout_gravity="center" 39 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 40 android:textColor="@color/system_on_primary" /> 41 </FrameLayout> 42 43 <FrameLayout 44 android:id="@+id/secondary_tab" 45 android:layout_width="wrap_content" 46 android:layout_height="wrap_content" 47 app:layout_constraintStart_toEndOf="@+id/primary_tab" 48 app:layout_constraintTop_toTopOf="parent" 49 app:layout_constraintBottom_toBottomOf="parent"> 50 <TextView 51 android:id="@+id/secondary_tab_text" 52 android:layout_width="wrap_content" 53 android:layout_height="wrap_content" 54 android:background="@drawable/small_preview_tab_background_selected" 55 android:layout_gravity="center" 56 android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps" 57 android:textColor="@color/system_on_primary" /> 58 </FrameLayout> 59 60 <androidx.constraintlayout.widget.Guideline 61 android:id="@+id/guideline_center" 62 android:layout_width="wrap_content" 63 android:layout_height="wrap_content" 64 android:orientation="vertical" 65 app:layout_constraintGuide_percent="0.5" /> 66</androidx.constraintlayout.motion.widget.MotionLayout>