]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_profile_detail.xml
rearrangement
[mobile-ledger.git] / app / src / main / res / layout / activity_profile_detail.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3   ~ Copyright © 2019 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.
9   ~
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.
14   ~
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/>.
17   -->
18
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.activity.ProfileDetailActivity">
25
26     <com.google.android.material.appbar.AppBarLayout
27         android:id="@+id/app_bar"
28         android:layout_width="match_parent"
29         android:layout_height="@dimen/app_bar_height"
30         android:fitsSystemWindows="true"
31         android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">
32
33         <com.google.android.material.appbar.CollapsingToolbarLayout
34             android:id="@+id/toolbar_layout"
35             android:layout_width="match_parent"
36             android:layout_height="match_parent"
37             android:fitsSystemWindows="true"
38             app:contentScrim="?attr/colorPrimary"
39             app:layout_scrollFlags="scroll|exitUntilCollapsed"
40             app:toolbarId="@+id/toolbar">
41
42             <androidx.appcompat.widget.Toolbar
43                 android:id="@+id/detail_toolbar"
44                 android:layout_width="match_parent"
45                 android:layout_height="?attr/actionBarSize"
46                 app:layout_collapseMode="pin"
47                 app:popupTheme="@style/ThemeOverlay.AppCompat.Light" />
48
49         </com.google.android.material.appbar.CollapsingToolbarLayout>
50
51     </com.google.android.material.appbar.AppBarLayout>
52
53     <androidx.core.widget.NestedScrollView
54         android:id="@+id/profile_detail_container"
55         android:layout_width="match_parent"
56         android:layout_height="match_parent"
57         app:layout_behavior="@string/appbar_scrolling_view_behavior" />
58
59     <com.google.android.material.floatingactionbutton.FloatingActionButton
60         android:id="@+id/fab"
61         android:layout_width="wrap_content"
62         android:layout_height="wrap_content"
63         android:layout_gravity="center_vertical|start"
64         android:layout_margin="@dimen/fab_margin"
65         app:backgroundTint="?colorAccent"
66         app:layout_anchor="@+id/profile_detail_container"
67         app:layout_anchorGravity="top|end"
68         app:srcCompat="@drawable/ic_save_white_24dp" />
69
70 </androidx.coordinatorlayout.widget.CoordinatorLayout>