1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
<LinearLayout
|
3
|
|
4
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
5
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
6
|
|
7
|
android:layout_width="match_parent"
|
8
|
android:layout_height="match_parent"
|
9
|
android:layout_weight="1"
|
10
|
android:orientation="vertical">
|
11
|
|
12
|
<com.google.android.material.tabs.TabLayout
|
13
|
android:id="@+id/sliding_tabs"
|
14
|
android:layout_width="wrap_content"
|
15
|
android:layout_height="wrap_content"
|
16
|
app:tabBackground="@drawable/tab_background"
|
17
|
app:tabMode="scrollable"
|
18
|
app:tabMinWidth="25dp"
|
19
|
app:tabGravity="fill">
|
20
|
</com.google.android.material.tabs.TabLayout>
|
21
|
|
22
|
<androidx.viewpager.widget.ViewPager
|
23
|
android:id="@+id/viewpager"
|
24
|
android:layout_width="match_parent"
|
25
|
android:layout_height="0dp"
|
26
|
android:layout_weight="1"
|
27
|
android:background="@android:color/black" />
|
28
|
|
29
|
</LinearLayout>
|