]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_new_transaction.xml
save icon from android studio clipart (Apache 2.0 license)
[mobile-ledger.git] / app / src / main / res / layout / activity_new_transaction.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
3     xmlns:app="http://schemas.android.com/apk/res-auto"
4     xmlns:tools="http://schemas.android.com/tools"
5     android:layout_width="match_parent"
6     android:layout_height="match_parent"
7     tools:context=".NewTransactionActivity">
8
9     <android.support.design.widget.AppBarLayout
10         android:layout_width="match_parent"
11         android:layout_height="wrap_content"
12         android:theme="@style/AppTheme.AppBarOverlay">
13
14         <android.support.v7.widget.Toolbar
15             android:id="@+id/toolbar"
16             android:layout_width="match_parent"
17             android:layout_height="?attr/actionBarSize"
18             android:background="?attr/colorPrimary"
19             app:popupTheme="@style/AppTheme.PopupOverlay" />
20
21     </android.support.design.widget.AppBarLayout>
22
23     <include layout="@layout/content_new_transaction" />
24
25     <android.support.constraint.ConstraintLayout
26         android:layout_width="match_parent"
27         android:layout_height="match_parent"
28         >
29
30         <ProgressBar
31             android:id="@+id/save_transaction_progress"
32             android:layout_width="80dp"
33             android:layout_height="80dp"
34             android:layout_margin="4dp"
35             android:visibility="invisible"
36             app:layout_constraintBottom_toBottomOf="parent"
37             app:layout_constraintEnd_toEndOf="parent" />
38
39         <android.support.design.widget.FloatingActionButton
40             android:id="@+id/fab"
41             android:layout_width="wrap_content"
42             android:layout_height="wrap_content"
43             android:layout_gravity="center"
44             android:padding="@dimen/fab_margin"
45             android:tint="@android:color/white"
46             app:backgroundTint="@color/colorPrimary"
47             app:layout_constraintBottom_toBottomOf="@id/save_transaction_progress"
48             app:layout_constraintEnd_toEndOf="@id/save_transaction_progress"
49             app:layout_constraintStart_toStartOf="@id/save_transaction_progress"
50             app:layout_constraintTop_toTopOf="@id/save_transaction_progress"
51             app:srcCompat="@drawable/ic_save_white_24dp" />
52
53     </android.support.constraint.ConstraintLayout>
54
55 </android.support.design.widget.CoordinatorLayout>