summaryrefslogtreecommitdiff
path: root/wallet/src/main/res/layout/fragment_review_exchange_tos.xml
diff options
context:
space:
mode:
Diffstat (limited to 'wallet/src/main/res/layout/fragment_review_exchange_tos.xml')
-rw-r--r--wallet/src/main/res/layout/fragment_review_exchange_tos.xml37
1 files changed, 22 insertions, 15 deletions
diff --git a/wallet/src/main/res/layout/fragment_review_exchange_tos.xml b/wallet/src/main/res/layout/fragment_review_exchange_tos.xml
index 2587c1a..ec8d996 100644
--- a/wallet/src/main/res/layout/fragment_review_exchange_tos.xml
+++ b/wallet/src/main/res/layout/fragment_review_exchange_tos.xml
@@ -21,36 +21,43 @@
android:layout_height="match_parent"
tools:context=".withdraw.ReviewExchangeTosFragment">
- <ScrollView
- android:id="@+id/tosScrollView"
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/tosList"
android:layout_width="0dp"
android:layout_height="0dp"
+ app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
app:layout_constraintBottom_toTopOf="@+id/buttonCard"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
- app:layout_constraintTop_toTopOf="parent">
-
- <TextView
- android:id="@+id/tosTextView"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="16dp"
- android:visibility="invisible"
- tools:text="@tools:sample/lorem/random"
- tools:visibility="visible" />
-
- </ScrollView>
+ app:layout_constraintTop_toTopOf="parent"
+ tools:listitem="@layout/list_item_tos" />
<ProgressBar
android:id="@+id/progressBar"
style="?android:attr/progressBarStyleLarge"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
- app:layout_constraintBottom_toBottomOf="@+id/tosScrollView"
+ app:layout_constraintBottom_toBottomOf="@+id/tosList"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
+ <TextView
+ android:id="@+id/errorView"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_margin="16dp"
+ android:gravity="center"
+ android:textColor="@color/red"
+ android:textSize="16sp"
+ android:visibility="invisible"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent"
+ tools:text="@string/exchange_tos_error"
+ tools:visibility="visible" />
+
<com.google.android.material.card.MaterialCardView
android:id="@+id/buttonCard"
style="@style/BottomCard"