summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-20 22:56:16 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-20 22:58:10 +0200
commiteb9594079589a0126c3fb5f9a2f6ecd56950eebc (patch)
tree2ab7544f0230c78c1df15ac9e75ed5d47ac87bbf /app/src/main/res/layout
parente63f231bc8583db065213a07019223f7c122c9fd (diff)
downloadmerchant-terminal-android-eb9594079589a0126c3fb5f9a2f6ecd56950eebc.tar.gz
merchant-terminal-android-eb9594079589a0126c3fb5f9a2f6ecd56950eebc.tar.bz2
merchant-terminal-android-eb9594079589a0126c3fb5f9a2f6ecd56950eebc.zip
prototype of payment request flow
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_merchant_history.xml32
-rw-r--r--app/src/main/res/layout/fragment_merchant_settings.xml15
-rw-r--r--app/src/main/res/layout/fragment_process_payment.xml60
-rw-r--r--app/src/main/res/layout/history_row.xml7
-rw-r--r--app/src/main/res/layout/nav_header_main.xml6
5 files changed, 112 insertions, 8 deletions
diff --git a/app/src/main/res/layout/fragment_merchant_history.xml b/app/src/main/res/layout/fragment_merchant_history.xml
new file mode 100644
index 0000000..92abdf7
--- /dev/null
+++ b/app/src/main/res/layout/fragment_merchant_history.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<androidx.core.widget.NestedScrollView
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="15dp">
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical">
+
+ <View
+ android:id="@+id/header"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"/>
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/list_history"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:scrollbars="vertical"
+ android:layout_marginTop="47dp" android:layout_marginEnd="75dp"
+ android:layout_marginBottom="17dp"/>
+
+ <Button
+ android:text="Button"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content" android:id="@+id/button2"/>
+ </LinearLayout>
+</androidx.core.widget.NestedScrollView>
diff --git a/app/src/main/res/layout/fragment_merchant_settings.xml b/app/src/main/res/layout/fragment_merchant_settings.xml
new file mode 100644
index 0000000..8fcf233
--- /dev/null
+++ b/app/src/main/res/layout/fragment_merchant_settings.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="utf-8"?>
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="15dp"
+ tools:context=".MerchantSettings">
+
+
+ <LinearLayout
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent">
+ </LinearLayout>
+</FrameLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/fragment_process_payment.xml b/app/src/main/res/layout/fragment_process_payment.xml
index b1d9813..0ff8257 100644
--- a/app/src/main/res/layout/fragment_process_payment.xml
+++ b/app/src/main/res/layout/fragment_process_payment.xml
@@ -1,14 +1,64 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
+ 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"
- tools:context=".ProcessPayment">
+ android:layout_margin="15dp"
+ tools:context=".ProcessPayment" android:id="@+id/frameLayout2">
- <!-- TODO: Update blank fragment layout -->
- <TextView
+ <androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:text="@string/hello_blank_fragment"/>
+ android:id="@+id/constraintLayout">
+ <Button
+ android:id="@+id/button_cancel_payment"
+ android:text="Cancel Payment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"/>
+ <ImageView
+ android:layout_width="269dp"
+ android:layout_height="275dp" tools:src="@tools:sample/backgrounds/scenic[16]"
+ android:id="@+id/qrcode" app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" android:layout_marginTop="32dp"
+ android:background="#CEC02424"/>
+ <TextView
+ android:text="Please scan QR Code or use NFC to pay"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/textView2"
+ android:textSize="24sp"
+ android:layout_marginTop="15dp"
+ app:layout_constraintTop_toBottomOf="@+id/qrcode"
+ android:layout_marginBottom="15dp"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintBottom_toTopOf="@+id/text_view_amount"
+ app:layout_constraintStart_toStartOf="parent"
+ android:textAlignment="center"/>
+ <TextView
+ android:text="AMOUNT"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/text_view_amount" android:textSize="30sp"
+ app:layout_constraintStart_toStartOf="parent"
+ android:layout_marginTop="39dp"
+ app:layout_constraintTop_toBottomOf="@+id/textView2"
+ app:layout_constraintBottom_toTopOf="@+id/text_view_order_reference"
+ app:layout_constraintEnd_toEndOf="parent"
+ tools:text="10.49 Eur"
+ />
+ <TextView
+ android:text="Order Reference: 1234"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/text_view_order_reference" android:layout_marginTop="8dp"
+ app:layout_constraintTop_toBottomOf="@+id/text_view_amount" android:layout_marginBottom="8dp"
+ app:layout_constraintBottom_toTopOf="@id/button_cancel_payment" app:layout_constraintStart_toStartOf="parent"
+ android:layout_marginStart="8dp" app:layout_constraintEnd_toEndOf="parent"
+ android:layout_marginEnd="8dp"
+ android:textAlignment="center"/>
+ </androidx.constraintlayout.widget.ConstraintLayout>
</FrameLayout> \ No newline at end of file
diff --git a/app/src/main/res/layout/history_row.xml b/app/src/main/res/layout/history_row.xml
new file mode 100644
index 0000000..a67cf37
--- /dev/null
+++ b/app/src/main/res/layout/history_row.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:id="@+id/historyText"
+ android:textSize="20sp">
+</TextView> \ No newline at end of file
diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml
index 92ca611..84d4010 100644
--- a/app/src/main/res/layout/nav_header_main.xml
+++ b/app/src/main/res/layout/nav_header_main.xml
@@ -17,7 +17,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
- app:srcCompat="@mipmap/ic_launcher_round"
+ app:srcCompat="@mipmap/ic_taler_logo_round"
android:contentDescription="@string/nav_header_desc"
android:id="@+id/imageView"/>
@@ -25,13 +25,13 @@
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingTop="@dimen/nav_header_vertical_spacing"
- android:text="@string/nav_header_title"
+ android:text="GNU Taler"
android:textAppearance="@style/TextAppearance.AppCompat.Body1"/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:text="@string/nav_header_subtitle"
+ android:text="Merchant Terminal"
android:id="@+id/textView"/>
</LinearLayout>