]> git.ktnx.net Git - mobile-ledger.git/blobdiff - app/src/main/res/layout-v26/content_new_transaction.xml
start the new transaction interface
[mobile-ledger.git] / app / src / main / res / layout-v26 / content_new_transaction.xml
diff --git a/app/src/main/res/layout-v26/content_new_transaction.xml b/app/src/main/res/layout-v26/content_new_transaction.xml
new file mode 100644 (file)
index 0000000..e6aff48
--- /dev/null
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="utf-8"?>
+<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
+    xmlns:app="http://schemas.android.com/apk/res-auto"
+    xmlns:tools="http://schemas.android.com/tools"
+    android:layout_width="match_parent"
+    android:layout_height="match_parent"
+    app:layout_behavior="@string/appbar_scrolling_view_behavior"
+    tools:context=".NewTransactionActivity"
+    tools:showIn="@layout/activity_new_transaction">
+
+    <ScrollView
+        android:layout_width="match_parent"
+        android:layout_height="match_parent">
+
+        <LinearLayout
+            android:layout_width="match_parent"
+            android:layout_height="wrap_content"
+            android:orientation="vertical">
+
+            <EditText
+                android:id="@+id/new_transaction_date"
+                android:layout_width="match_parent"
+                android:layout_height="wrap_content"
+                android:ems="10"
+                android:hint="@string/new_transaction_date_hint"
+                android:importantForAutofill="no"
+                android:inputType="date"
+                android:onClick="pickTransactionDate"
+                android:textAlignment="center" />
+
+            <LinearLayout
+                android:importantForAutofill="noExcludeDescendants"
+                android:layout_width="match_parent"
+                android:layout_height="match_parent"
+                android:orientation="vertical">
+
+                <AutoCompleteTextView
+                    android:id="@+id/autoCompleteTextView2"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_weight="1"
+                    android:hint="@string/new_transaction_account_label"
+                    android:text="" />
+
+                <EditText
+                    android:id="@+id/editText4"
+                    android:layout_width="match_parent"
+                    android:layout_height="wrap_content"
+                    android:layout_weight="1"
+                    android:ems="10"
+                    android:hint="@string/new_transaction_amount_hint"
+                    android:inputType="numberSigned|numberDecimal"
+                    android:textAlignment="viewEnd" />
+            </LinearLayout>
+
+        </LinearLayout>
+    </ScrollView>
+
+</android.support.constraint.ConstraintLayout>
\ No newline at end of file