1 <?xml version="1.0" encoding="utf-8"?>
3 ~ Copyright © 2021 Damyan Ivanov.
4 ~ This file is part of MoLe.
5 ~ MoLe is free software: you can distribute it and/or modify it
6 ~ under the term of the GNU General Public License as published by
7 ~ the Free Software Foundation, either version 3 of the License, or
8 ~ (at your opinion), any later version.
10 ~ MoLe is distributed in the hope that it will be useful,
11 ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 ~ GNU General Public License terms for details.
15 ~ You should have received a copy of the GNU General Public License
16 ~ along with MoLe. If not, see <https://www.gnu.org/licenses/>.
19 <androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
20 xmlns:app="http://schemas.android.com/apk/res-auto"
21 xmlns:tools="http://schemas.android.com/tools"
22 android:layout_width="match_parent"
23 android:layout_height="match_parent"
24 tools:context=".ui.profiles.ProfileDetailActivity"
25 android:fitsSystemWindows="false"
28 <com.google.android.material.appbar.AppBarLayout
29 android:id="@+id/app_bar"
30 android:layout_width="match_parent"
31 android:layout_height="@dimen/app_bar_height"
32 android:fitsSystemWindows="true"
33 android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
36 <com.google.android.material.appbar.CollapsingToolbarLayout
37 android:id="@+id/toolbar_layout"
38 android:layout_width="match_parent"
39 android:layout_height="match_parent"
40 android:fitsSystemWindows="true"
41 app:contentScrim="?attr/colorPrimary"
42 app:layout_scrollFlags="scroll|exitUntilCollapsed"
43 app:toolbarId="@+id/toolbar">
45 <androidx.appcompat.widget.Toolbar
46 android:id="@+id/detail_toolbar"
47 android:layout_width="match_parent"
48 android:layout_height="?attr/actionBarSize"
49 app:layout_collapseMode="pin"
50 app:popupTheme="@style/ThemeOverlay.AppCompat.DayNight"
53 </com.google.android.material.appbar.CollapsingToolbarLayout>
55 </com.google.android.material.appbar.AppBarLayout>
57 <androidx.core.widget.NestedScrollView
58 android:id="@+id/profile_detail_container"
59 android:layout_width="match_parent"
60 android:layout_height="match_parent"
61 app:layout_behavior="@string/appbar_scrolling_view_behavior" />
63 <com.google.android.material.floatingactionbutton.FloatingActionButton
64 android:id="@+id/fabAdd"
65 android:layout_width="wrap_content"
66 android:layout_height="wrap_content"
67 android:layout_gravity="center_vertical|start"
68 android:layout_margin="@dimen/fab_margin"
69 app:backgroundTint="?colorSecondary"
70 app:layout_anchor="@+id/profile_detail_container"
71 app:layout_anchorGravity="top|end"
72 app:srcCompat="@drawable/ic_save_white_24dp" />
74 </androidx.coordinatorlayout.widget.CoordinatorLayout>