blob: 3e83bb9b2c488a1a31d3187d092b0dbc175bcf39 [file] [log] [blame]
Raff Tsai65866292019-10-05 09:32:19 +08001<!--
2 Copyright (C) 2019 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
17<LinearLayout
18 xmlns:android="http://schemas.android.com/apk/res/android"
19 xmlns:app="http://schemas.android.com/apk/res-auto"
20 android:theme="@style/Theme.MaterialComponents.DayNight"
Raff Tsai29c15272019-11-04 17:34:02 +080021 android:clipToPadding="true"
22 android:clipChildren="true"
Raff Tsai65866292019-10-05 09:32:19 +080023 android:layout_width="match_parent"
24 android:layout_height="match_parent"
25 android:orientation="vertical">
26
Raff Tsai539ab8a2019-10-25 13:01:34 +080027 <com.google.android.material.tabs.TabLayout
28 android:background="@android:color/transparent"
29 android:id="@+id/tabs"
30 android:layout_width="match_parent"
31 android:layout_height="wrap_content"
32 app:tabMaxWidth="0dp"
33 app:tabGravity="fill"
34 app:tabMode="fixed"
Raff Tsai539ab8a2019-10-25 13:01:34 +080035 app:tabIndicatorColor="@*android:color/accent_device_default"
36 app:tabSelectedTextColor="@*android:color/accent_device_default"
37 app:tabTextColor="?android:attr/textColorSecondary" />
38 <View
39 android:layout_width="match_parent"
40 android:layout_height="1dp"
41 android:background="?android:attr/listDivider"/>
42
Raff Tsai65866292019-10-05 09:32:19 +080043 <androidx.viewpager.widget.ViewPager
44 android:id="@+id/view_pager"
45 android:layout_width="match_parent"
46 android:layout_height="match_parent">
47
Raff Tsai65866292019-10-05 09:32:19 +080048 </androidx.viewpager.widget.ViewPager>
49</LinearLayout>