diff options
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/app_bar_main.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/layout/balance_row.xml | 40 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_prompt_withdraw.xml | 79 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_show_balance.xml | 7 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_withdraw_successful.xml | 53 |
5 files changed, 183 insertions, 6 deletions
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 0e95cb0..7bf5acd 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -38,4 +38,14 @@ <include layout="@layout/content_main" android:id="@+id/include"/> + <com.google.android.material.floatingactionbutton.FloatingActionButton + android:id="@+id/fab" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|end" + android:layout_margin="@dimen/fab_margin" + app:fabSize="normal" + android:scaleType="center" + app:srcCompat="@drawable/ic_scan_qr" /> + </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/balance_row.xml b/app/src/main/res/layout/balance_row.xml index 75f143c..9a81489 100644 --- a/app/src/main/res/layout/balance_row.xml +++ b/app/src/main/res/layout/balance_row.xml @@ -28,4 +28,44 @@ </LinearLayout> + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:id="@+id/balance_row_pending"> + + <Space android:layout_width="5sp" + android:layout_height="match_parent"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="+" + android:textColor="#006600"> + </TextView> + + <Space android:layout_width="5sp" + android:layout_height="match_parent"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/balance_pending" + android:textColor="#006600" + android:textSize="20sp" tools:text="10 TESTKUDOS"> + </TextView> + + <Space android:layout_width="5sp" + android:layout_height="match_parent"/> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="inbound" + android:textColor="#006600"> + </TextView> + + </LinearLayout> + + + </LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_prompt_withdraw.xml b/app/src/main/res/layout/fragment_prompt_withdraw.xml new file mode 100644 index 0000000..aa3c860 --- /dev/null +++ b/app/src/main/res/layout/fragment_prompt_withdraw.xml @@ -0,0 +1,79 @@ +<?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=".PromptWithdraw"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:id="@+id/prompt_withdraw"> + + <Space android:layout_width="match_parent" + android:layout_height="15dp" + android:layout_weight="1"/> + + <TextView + android:text="Do you want to withdraw" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:id="@+id/textView2"/> + + <TextView + android:text="(amount)" + tools:text="10.00 KUDOS" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="25sp" + android:layout_gravity="center" + android:id="@+id/withdraw_amount"/> + + <Space android:layout_width="match_parent" + android:layout_height="25dp"/> + + + <TextView + android:text="Using the exchange provider" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:id="@+id/textView3"/> + <TextView + android:text="(exchange base url)" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textSize="25sp" + android:layout_gravity="center" + android:id="@+id/withdraw_exchange"/> + + <Space android:layout_width="match_parent" + android:layout_height="15dp" + android:layout_weight="1"/> + + + <Space android:layout_width="match_parent" + android:layout_height="15dp" + android:layout_weight="1"/> + + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + <Button android:layout_width="wrap_content" android:layout_height="wrap_content" + android:text="Cancel" + android:id="@+id/button_cancel_withdraw"/> + + <Space android:layout_width="15dp" android:layout_height="match_parent" + android:layout_weight="1"/> + + <Button android:layout_width="wrap_content" android:layout_height="wrap_content" + android:id="@+id/button_confirm_withdraw" + android:text="Confirm Withdraw"/> + </LinearLayout> + + </LinearLayout> + +</FrameLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_show_balance.xml b/app/src/main/res/layout/fragment_show_balance.xml index e4d2e81..b93d2c2 100644 --- a/app/src/main/res/layout/fragment_show_balance.xml +++ b/app/src/main/res/layout/fragment_show_balance.xml @@ -38,14 +38,9 @@ android:layout_height="wrap_content" android:id="@+id/button_withdraw_testkudos"/> <Button - android:text="Pay via QR Code" + android:text="Scan Taler QR Code" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/button_pay_qr"/> - <Button - android:text="Pay via NFC" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:id="@+id/button_pay_nfc"/> </LinearLayout> </androidx.core.widget.NestedScrollView> diff --git a/app/src/main/res/layout/fragment_withdraw_successful.xml b/app/src/main/res/layout/fragment_withdraw_successful.xml new file mode 100644 index 0000000..717ca20 --- /dev/null +++ b/app/src/main/res/layout/fragment_withdraw_successful.xml @@ -0,0 +1,53 @@ +<?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="10dp" + tools:context=".WithdrawSuccessful"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <Space + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:autoSizeTextType="uniform" + android:text="Withdrawal confirmed." + android:textAlignment="center" + android:textColor="@android:color/holo_green_dark" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="50dp" + android:layout_gravity="center" + android:text="Your bank will now ask you to approve a transfer to the selected change. After you've confirmed the transfer with your bank, the digital cash will show in this wallet." + android:textAlignment="center" /> + + <Space + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + + <Space + android:layout_width="match_parent" + android:layout_height="0dp" + android:layout_weight="1" /> + + <Button + android:id="@+id/button_success_back" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="Go Back" /> + + </LinearLayout> +</FrameLayout>
\ No newline at end of file |