<?xml version="1.0" encoding="utf-8"?><!--
  ~ Copyright (C) 2024 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.
  -->
<androidx.constraintlayout.motion.widget.MotionLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/preview_tabs"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:layoutDescription="@xml/preview_tabs_motion_scene">

    <FrameLayout
        android:id="@+id/primary_tab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toStartOf="@+id/guideline_center"
        app:layout_constraintEnd_toEndOf="@+id/guideline_center"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        android:layout_marginHorizontal="8dp">
        <TextView
            android:id="@+id/primary_tab_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/small_preview_tab_background_selected"
            android:layout_gravity="center"
            android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps"
            android:textColor="@color/system_on_primary" />
    </FrameLayout>

    <FrameLayout
        android:id="@+id/secondary_tab"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        app:layout_constraintStart_toEndOf="@+id/primary_tab"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent">
        <TextView
            android:id="@+id/secondary_tab_text"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:background="@drawable/small_preview_tab_background_selected"
            android:layout_gravity="center"
            android:textAppearance="@style/WallpaperPicker.Preview.TextAppearance.NoAllCaps"
            android:textColor="@color/system_on_primary" />
    </FrameLayout>

    <androidx.constraintlayout.widget.Guideline
        android:id="@+id/guideline_center"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        app:layout_constraintGuide_percent="0.5" />
</androidx.constraintlayout.motion.widget.MotionLayout>