diff options
author | Torsten Grote <t@grobox.de> | 2020-02-25 11:14:35 -0300 |
---|---|---|
committer | Torsten Grote <t@grobox.de> | 2020-02-25 11:14:35 -0300 |
commit | 7f76cdb94137499543c965f10fd50b1021a92cd2 (patch) | |
tree | b1f361db60b3df70027aab4bf2324aaa5dce9916 /app/src/main/res/layout/fragment_payment_success.xml | |
parent | bde95551fcacbc6cec2881fe45ca27a54aaed07e (diff) | |
download | merchant-terminal-android-7f76cdb94137499543c965f10fd50b1021a92cd2.tar.gz merchant-terminal-android-7f76cdb94137499543c965f10fd50b1021a92cd2.tar.bz2 merchant-terminal-android-7f76cdb94137499543c965f10fd50b1021a92cd2.zip |
Redesign payment successful screen
Diffstat (limited to 'app/src/main/res/layout/fragment_payment_success.xml')
-rw-r--r-- | app/src/main/res/layout/fragment_payment_success.xml | 47 |
1 files changed, 38 insertions, 9 deletions
diff --git a/app/src/main/res/layout/fragment_payment_success.xml b/app/src/main/res/layout/fragment_payment_success.xml index d6a27db..4924df4 100644 --- a/app/src/main/res/layout/fragment_payment_success.xml +++ b/app/src/main/res/layout/fragment_payment_success.xml @@ -4,30 +4,59 @@ xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" - android:layout_margin="16dp" tools:context=".payment.PaymentSuccessFragment"> + <ImageView + android:id="@+id/paymentIcon" + android:layout_width="0dp" + android:layout_height="0dp" + android:layout_margin="16dp" + android:src="@drawable/ic_check_circle" + app:layout_constraintBottom_toTopOf="@+id/paymentLabel" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintHorizontal_bias="0.5" + app:layout_constraintStart_toStartOf="parent" + app:layout_constraintTop_toTopOf="parent" + app:layout_constraintVertical_chainStyle="spread_inside" + tools:ignore="ContentDescription" /> + <TextView - android:id="@+id/textView3" + android:id="@+id/paymentLabel" android:layout_width="0dp" android:layout_height="0dp" - android:gravity="center" + android:layout_margin="16dp" + android:gravity="center_horizontal|top" android:text="@string/payment_received" - android:textColor="@android:color/holo_green_dark" + android:textColor="@color/green" app:autoSizeMaxTextSize="42sp" app:autoSizeTextType="uniform" - app:layout_constraintBottom_toTopOf="@+id/button_success_back" + app:layout_constraintBottom_toTopOf="@+id/paymentButton" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" - app:layout_constraintTop_toTopOf="parent" /> + app:layout_constraintTop_toBottomOf="@+id/paymentIcon" /> + + <androidx.constraintlayout.widget.Guideline + android:id="@+id/guidelineLeft" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintGuide_percent="0.25" /> + + <androidx.constraintlayout.widget.Guideline + android:id="@+id/guidelineRight" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="vertical" + app:layout_constraintGuide_percent="0.75" /> <Button - android:id="@+id/button_success_back" + android:id="@+id/paymentButton" android:layout_width="0dp" android:layout_height="wrap_content" + android:layout_margin="16dp" android:text="@string/payment_back_button" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintEnd_toEndOf="parent" - app:layout_constraintStart_toStartOf="parent" /> + app:layout_constraintEnd_toStartOf="@+id/guidelineRight" + app:layout_constraintStart_toStartOf="@+id/guidelineLeft" /> </androidx.constraintlayout.widget.ConstraintLayout> |