tempus/app/src/main/res/layout/fragment_home.xml

59 lines
2.4 KiB
XML
Raw Normal View History

2020-11-20 15:38:08 +01:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
2020-11-20 15:38:08 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.fragment.HomeFragment">
2020-11-20 15:38:08 +01:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
2022-01-10 12:45:01 +01:00
android:layout_height="wrap_content">
2020-11-20 15:38:08 +01:00
2022-01-10 12:45:01 +01:00
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
2020-11-20 15:38:08 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?attr/colorSurface"
2022-01-10 12:45:01 +01:00
app:layout_scrollFlags="scroll|enterAlways|snap">
2020-11-20 15:38:08 +01:00
<LinearLayout
2021-04-14 14:55:28 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<ImageView
2023-06-04 11:36:25 +02:00
android:layout_width="28dp"
android:layout_height="28dp"
2021-08-10 15:47:50 +02:00
android:layout_gravity="center_vertical"
android:layout_marginEnd="8dp"
2023-06-04 11:36:25 +02:00
android:background="@drawable/ic_toolbar_tempo" />
<TextView
2022-01-13 10:38:46 +01:00
style="@style/HeadlineMedium"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-08-27 16:54:36 +02:00
android:paddingStart="8dp"
android:paddingEnd="8dp"
2021-09-04 21:31:27 +02:00
android:text="@string/app_name" />
</LinearLayout>
2022-01-10 12:45:01 +01:00
</com.google.android.material.appbar.MaterialToolbar>
2021-08-17 16:17:41 +02:00
<com.google.android.material.tabs.TabLayout
android:id="@+id/homeTabLayout"
2021-04-14 14:55:28 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:tabGravity="fill"
app:tabMode="fixed" />
</com.google.android.material.appbar.AppBarLayout>
<androidx.viewpager2.widget.ViewPager2
android:id="@+id/homeViewPager"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
2020-11-20 15:38:08 +01:00