55 lines
2.5 KiB
XML
55 lines
2.5 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">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/title_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent"
|
|
android:fitsSystemWindows="true"
|
|
app:liftOnScroll="false"
|
|
android:stateListAnimator="@null">
|
|
|
|
<com.google.android.material.appbar.CollapsingToolbarLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/collapsingToolbarLayoutMediumSize"
|
|
style="?attr/collapsingToolbarLayoutMediumStyle"
|
|
app:collapsedTitleTextAppearance="?attr/textAppearanceTitleLarge"
|
|
app:expandedTitleTextAppearance="?attr/textAppearanceHeadlineLarge"
|
|
app:contentScrim="?attr/colorSurfaceContainer"
|
|
app:titleCollapseMode="scale"
|
|
app:layout_scrollFlags="scroll|exitUntilCollapsed|snap">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:theme="@style/ThemeOverlay.Material3.Toolbar.CircleNavigationButton"
|
|
android:id="@+id/top_bar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="?attr/actionBarSize"
|
|
app:navigationIcon="@drawable/ic_arrow_back"
|
|
app:title="@string/rss"
|
|
app:layout_collapseMode="pin" />
|
|
|
|
</com.google.android.material.appbar.CollapsingToolbarLayout>
|
|
|
|
<com.google.android.material.tabs.TabLayout
|
|
android:id="@+id/tab_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent"
|
|
android:paddingHorizontal="16dp"/>
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
<androidx.viewpager2.widget.ViewPager2
|
|
android:id="@+id/view_pager"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
app:layout_behavior="@string/appbar_scrolling_view_behavior"
|
|
tools:ignore="SpeakableTextPresentCheck" />
|
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout> |