summaryrefslogtreecommitdiff
path: root/app/src/main/res/layout/fragment_withdraw_successful.xml
diff options
context:
space:
mode:
authorTorsten Grote <t@grobox.de>2020-03-03 14:03:45 -0300
committerTorsten Grote <t@grobox.de>2020-03-03 14:03:45 -0300
commit30980bc83be99ea85205f44c815b78164b11f7b9 (patch)
treea8950120aa57df2839e4d1f40cb84ca841f27ad3 /app/src/main/res/layout/fragment_withdraw_successful.xml
parenta9fd9aa024d1cafe50be76eb2ca6a818bce38862 (diff)
downloadwallet-android-30980bc83be99ea85205f44c815b78164b11f7b9.tar.gz
wallet-android-30980bc83be99ea85205f44c815b78164b11f7b9.tar.bz2
wallet-android-30980bc83be99ea85205f44c815b78164b11f7b9.zip
Clean up and improve withdraw UI (first pass)
Diffstat (limited to 'app/src/main/res/layout/fragment_withdraw_successful.xml')
-rw-r--r--app/src/main/res/layout/fragment_withdraw_successful.xml66
1 files changed, 32 insertions, 34 deletions
diff --git a/app/src/main/res/layout/fragment_withdraw_successful.xml b/app/src/main/res/layout/fragment_withdraw_successful.xml
index 5a48f75..d1b9c90 100644
--- a/app/src/main/res/layout/fragment_withdraw_successful.xml
+++ b/app/src/main/res/layout/fragment_withdraw_successful.xml
@@ -14,51 +14,49 @@
~ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/>
-->
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.constraintlayout.widget.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"
- android:layout_margin="10dp"
- android:orientation="vertical"
- tools:context=".WithdrawSuccessful">
-
- <Space
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1" />
+ tools:context=".withdraw.WithdrawSuccessfulFragment">
<TextView
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_gravity="center"
+ android:id="@+id/withdrawHeadlineView"
+ android:layout_width="0dp"
+ android:layout_height="0dp"
+ android:layout_margin="16dp"
+ android:gravity="center_horizontal|bottom"
android:text="@string/withdraw_accepted"
- android:textAlignment="center"
- android:textColor="@android:color/holo_green_dark"
- app:autoSizeTextType="uniform" />
+ android:textColor="@color/green"
+ app:autoSizeMaxTextSize="40sp"
+ app:autoSizeTextType="uniform"
+ app:layout_constraintBottom_toTopOf="@+id/withdrawInfoView"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<TextView
- android:layout_width="match_parent"
- android:layout_height="50dp"
- android:layout_gravity="center"
- android:text="@string/withdraw_success_info"
- android:textAlignment="center" />
-
- <Space
- android:layout_width="match_parent"
+ android:id="@+id/withdrawInfoView"
+ android:layout_width="0dp"
android:layout_height="0dp"
- android:layout_weight="1" />
-
-
- <Space
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="1" />
+ android:layout_margin="16dp"
+ android:text="@string/withdraw_success_info"
+ android:textAlignment="center"
+ app:layout_constraintBottom_toTopOf="@+id/backButton"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/withdrawHeadlineView" />
<Button
android:id="@+id/backButton"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
- android:text="@string/button_back" />
-
-</LinearLayout>
+ android:layout_margin="16dp"
+ android:text="@string/button_back"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@+id/withdrawInfoView" />
+
+</androidx.constraintlayout.widget.ConstraintLayout>