habitica-android/Habitica/res/layout/activity_gift_gems.xml

86 lines
3.7 KiB
XML
Raw Permalink Normal View History

2019-10-07 16:35:08 +00:00
<?xml version="1.0" encoding="utf-8"?>
2019-10-30 13:43:44 +00:00
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
2019-10-07 16:35:08 +00:00
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
2021-06-04 14:11:48 +00:00
android:layout_height="match_parent">
2020-09-10 10:01:47 +00:00
<LinearLayout xmlns:app="http://schemas.android.com/apk/res-auto"
2019-10-07 16:35:08 +00:00
android:layout_width="match_parent"
2019-10-30 13:43:44 +00:00
android:layout_height="match_parent"
tools:context=".ui.activities.PrefsActivity"
android:orientation="vertical"
2022-11-22 14:48:15 +00:00
android:background="?attr/colorContentBackground">
2019-10-07 16:35:08 +00:00
2025-01-30 10:29:45 +00:00
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar"
android:background="?attr/headerBackgroundColor"
android:layout_width="match_parent"
android:layout_height="wrap_content">
2019-10-07 16:35:08 +00:00
2019-10-30 13:43:44 +00:00
<androidx.appcompat.widget.Toolbar
android:id="@+id/toolbar"
2019-10-15 16:22:54 +00:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2019-10-30 13:43:44 +00:00
android:minHeight="?attr/actionBarSize"
2021-01-04 11:05:30 +00:00
android:background="?attr/colorContentBackground"
2019-10-30 13:43:44 +00:00
app:layout_scrollFlags="scroll|enterAlways"
2021-06-08 14:54:30 +00:00
style="@style/Toolbar.Modern"
app:popupTheme="@style/Theme.AppCompat.DayNight">
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_marginEnd="16dp">
<TextView
android:id="@+id/toolbar_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:ellipsize="end"
android:maxLines="1"
android:singleLine="true"
android:layout_toStartOf="@id/toolbar_accessory_container"
android:layout_alignParentStart="true"
style="@style/TextAppearance.AppCompat.Widget.ActionBar.Title"
tools:text="Habitica"/>
<FrameLayout
android:id="@+id/toolbar_accessory_container"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="centerCrop"
android:adjustViewBounds="true"
android:layout_centerVertical="true"
android:layout_alignParentEnd="true"/>
</RelativeLayout>
</androidx.appcompat.widget.Toolbar>
2019-10-30 13:43:44 +00:00
</com.google.android.material.appbar.AppBarLayout>
<com.google.android.material.tabs.TabLayout
android:id="@+id/tab_layout"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
2020-09-17 15:58:59 +00:00
android:background="?headerOffsetColor"
2019-10-30 13:43:44 +00:00
android:elevation="0dp"
android:fillViewport="false"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
app:layout_anchor="@+id/collapsing_toolbar"
app:layout_anchorGravity="bottom"
app:layout_collapseMode="pin"
app:tabGravity="fill"
2020-09-17 15:58:59 +00:00
app:tabIndicatorColor="?colorPrimary"
2019-10-30 13:43:44 +00:00
app:tabMode="fixed" />
2021-09-15 15:41:05 +00:00
<androidx.viewpager2.widget.ViewPager2
2019-10-30 13:43:44 +00:00
android:id="@+id/viewPager"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_weight="1"
2022-11-22 14:48:15 +00:00
android:background="?attr/colorContentBackground" />
2019-10-30 13:43:44 +00:00
</LinearLayout>
</FrameLayout>