]> git.ktnx.net Git - mobile-ledger.git/blob - app/src/main/res/layout/activity_new_transaction.xml
hide submit fab when there is no enough account data
[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:indeterminate="true"
36             android:visibility="invisible"
37             app:layout_constraintBottom_toBottomOf="parent"
38             app:layout_constraintEnd_toEndOf="parent" />
39
40         <android.support.design.widget.FloatingActionButton
41             android:id="@+id/fab"
42             android:layout_width="wrap_content"
43             android:layout_height="wrap_content"
44             android:layout_gravity="center"
45             android:padding="@dimen/fab_margin"
46             android:tint="@android:color/white"
47             android:visibility="visible"
48             app:backgroundTint="@color/colorPrimary"
49             app:layout_constraintBottom_toBottomOf="@id/save_transaction_progress"
50             app:layout_constraintEnd_toEndOf="@id/save_transaction_progress"
51             app:layout_constraintStart_toStartOf="@id/save_transaction_progress"
52             app:layout_constraintTop_toTopOf="@id/save_transaction_progress"
53             app:srcCompat="@drawable/ic_save_white_24dp" />
54
55     </android.support.constraint.ConstraintLayout>
56
57 </android.support.design.widget.CoordinatorLayout>