1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2020 The Android Open Source Project
4  ~
5  ~ Licensed under the Apache License, Version 2.0 (the "License");
6  ~ you may not use this file except in compliance with the License.
7  ~ You may obtain a copy of the License at
8  ~
9  ~      http://www.apache.org/licenses/LICENSE-2.0
10  ~
11  ~ Unless required by applicable law or agreed to in writing, software
12  ~ distributed under the License is distributed on an "AS IS" BASIS,
13  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  ~ See the License for the specific language governing permissions and
15  ~ limitations under the License.
16  -->
17<!--
18    Including a copy of this file from phone settings because the way
19    androidx.preference.PreferenceFragmentCompat references this layout requires it to be overlaid
20    in this package's resources.
21
22    This file should be mostly kept consistent with the preference_list_fragment layout found in
23    packages/apps/Settings.
24-->
25<LinearLayout
26    xmlns:android="http://schemas.android.com/apk/res/android"
27    xmlns:app="http://schemas.android.com/apk/res-auto"
28    android:id="@+id/container_material"
29    android:orientation="vertical"
30    android:layout_width="match_parent"
31    android:layout_height="match_parent"
32    android:background="@android:color/transparent">
33
34    <FrameLayout android:id="@+id/pinned_header"
35                 android:layout_width="match_parent"
36                 android:layout_height="wrap_content"
37                 android:background="?android:attr/windowBackground"
38                 android:elevation="1dp"
39                 android:visibility="gone"/>
40
41    <FrameLayout
42        android:id="@android:id/list_container"
43        android:layout_height="0px"
44        android:layout_weight="1"
45        android:layout_width="match_parent">
46
47        <include layout="@layout/loading_container" />
48
49    </FrameLayout>
50
51    <TextView android:id="@android:id/empty"
52              android:layout_width="wrap_content"
53              android:layout_height="match_parent"
54              android:padding="@*android:dimen/preference_fragment_padding_side"
55              android:layout_gravity="center"
56              android:gravity="center_vertical"
57              android:visibility="gone" />
58
59    <LinearLayout
60        android:theme="@style/Theme.TabTheme"
61        android:id="@+id/tab_container"
62        android:clipToPadding="true"
63        android:clipChildren="true"
64        android:layout_width="match_parent"
65        android:layout_height="match_parent"
66        android:orientation="vertical"
67        android:visibility="gone">
68
69        <com.google.android.material.tabs.TabLayout
70            android:background="@android:color/transparent"
71            android:id="@+id/tabs"
72            android:layout_width="match_parent"
73            android:layout_height="wrap_content"
74            android:layoutDirection="ltr"
75            app:tabMaxWidth="0dp"
76            app:tabGravity="fill"
77            app:tabMode="fixed"
78            app:tabIndicatorColor="@*android:color/accent_device_default"
79            app:tabSelectedTextColor="@*android:color/accent_device_default"
80            app:tabTextAppearance="@style/TextAppearance.Tab"
81            app:tabTextColor="?android:attr/textColorSecondary"/>
82        <View
83            android:layout_width="match_parent"
84            android:layout_height="1dp"
85            android:background="?android:attr/listDivider"/>
86
87        <androidx.viewpager.widget.ViewPager
88            android:id="@+id/view_pager"
89            android:layout_width="match_parent"
90            android:layout_height="match_parent">
91
92        </androidx.viewpager.widget.ViewPager>
93    </LinearLayout>
94
95</LinearLayout>
96