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