teapod/app/src/main/res/layout/fragment_my_lists.xml

44 lines
1.9 KiB
XML
Raw Normal View History

2020-10-08 22:20:20 +02:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.activity.main.fragments.MyListsFragment">
2020-10-11 18:07:00 +02:00
2022-12-26 19:43:40 +01:00
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_my_lists"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:background="@android:color/transparent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent"
2023-03-29 16:16:31 +02:00
app:tabMode="fixed">
<!-- TODO app:tabTextColor="?colorOnPrimary" -->
2022-12-26 19:43:40 +01:00
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/my_list" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/crunchylists" />
<com.google.android.material.tabs.TabItem
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/downloads" />
</com.google.android.material.tabs.TabLayout>
2020-10-11 18:07:00 +02:00
2022-12-26 19:43:40 +01:00
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/pager_my_lists"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/tab_my_lists" />
2020-10-08 22:20:20 +02:00
</androidx.constraintlayout.widget.ConstraintLayout>