mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 00:03:07 +00:00
59 lines
2.4 KiB
XML
59 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout 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.fragment.HomeFragment">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/appbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="?attr/colorSurface"
|
|
app:layout_scrollFlags="scroll|enterAlways|snap">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
|
|
<ImageView
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_marginEnd="8dp"
|
|
android:background="@drawable/ic_toolbar_motion_on" />
|
|
|
|
<TextView
|
|
style="@style/HeadlineMedium"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:paddingStart="8dp"
|
|
android:paddingEnd="8dp"
|
|
android:text="@string/app_name" />
|
|
</LinearLayout>
|
|
</com.google.android.material.appbar.MaterialToolbar>
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/homeTabLayout"
|
|
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>
|
|
|