fragment_mix_details_dialog.xml 12.3 KB
Newer Older
Sarath's avatar
Sarath committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
<?xml version="1.0" encoding="utf-8"?>
<androidx.coordinatorlayout.widget.CoordinatorLayout 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:fillViewport="true"
    android:background="@color/transparent"
    app:layout_scrollFlags="scroll">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical">


        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_gravity="center"
            android:gravity="center|start"
            android:orientation="horizontal"
            android:paddingStart="12dp"
            android:paddingTop="12dp"
            android:paddingEnd="12dp"
            android:weightSum="2">

            <TextView
                style="@style/TextAppearance.AppCompat.Subhead"
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="1"
                android:gravity="center_vertical"
Sarath's avatar
Sarath committed
34
                android:text="@string/mix_details"
Wallet Guy's avatar
Wallet Guy committed
35 36
                android:textColor="@color/accent"
                android:textStyle="bold"
Sarath's avatar
Sarath committed
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintHorizontal_bias="0.0"
                app:layout_constraintStart_toStartOf="parent"
                app:layout_constraintTop_toTopOf="parent" />


        </LinearLayout>

        <androidx.core.widget.NestedScrollView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:fillViewport="true"
            app:layout_behavior="@string/appbar_scrolling_view_behavior">

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="16dp"
                android:layout_marginEnd="8dp"
                android:orientation="vertical"
                app:layout_constraintEnd_toEndOf="parent"
                app:layout_constraintStart_toStartOf="parent">

                <FrameLayout
                    android:id="@+id/mixProgressContainer"
                    android:layout_width="wrap_content"
                    android:layout_gravity="center"
                    android:layout_height="wrap_content">
                    <com.google.android.material.progressindicator.CircularProgressIndicator
                        android:id="@+id/mixProgressBar"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:padding="12dp"
                        android:layout_gravity="center"
                        app:trackCornerRadius="12dp"
                        app:indicatorSize="164dp"
                        app:showAnimationBehavior="inward"
                        app:indicatorColor="@color/green_ui_2"
                        app:trackColor="@color/disabled_grey"
                        app:trackThickness="8dp"
                        tools:progress="50" />

                    <TextView
                        android:id="@+id/mixStepMessage"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="center"
                        android:background="?attr/selectableItemBackground"
                        android:gravity="end"
                        android:textSize="12sp"
                        android:paddingTop="8dp"
                        android:paddingBottom="12dp"
                        android:textColor="@color/text_secondary"
                        tools:text="1234" />
                </FrameLayout>

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="12dp">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:layout_weight="1"
Sarath's avatar
Sarath committed
104
                        android:text="@string/mix_amount" />
Sarath's avatar
Sarath committed
105 106 107 108 109 110 111 112 113 114

                    <TextView
                        android:id="@+id/mixAmount"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="end"
                        android:layout_weight="1"
                        android:background="?attr/selectableItemBackground"
                        android:gravity="end"
                        android:textColor="@color/text_secondary"
Wallet Guy's avatar
Wallet Guy committed
115
                        android:fontFamily="@font/roboto_mono"
Sarath's avatar
Sarath committed
116 117 118 119 120 121 122 123 124 125
                        tools:text="1234" />


                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_margin="12dp"
                    android:layout_marginTop="1dp"
Wallet Guy's avatar
Wallet Guy committed
126 127
                    android:alpha="0.1"
                    android:background="@color/white" />
Sarath's avatar
Sarath committed
128 129 130 131 132 133 134 135 136 137 138
                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="12dp">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:layout_weight="1"
Sarath's avatar
Sarath committed
139
                        android:text="@string/mixes_completed" />
Sarath's avatar
Sarath committed
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159

                    <TextView
                        android:id="@+id/mixesDone"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="end"
                        android:layout_weight="1"
                        android:background="?attr/selectableItemBackground"
                        android:gravity="end"
                        android:textColor="@color/text_secondary"
                        tools:text="1234" />


                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_margin="12dp"
                    android:layout_marginTop="1dp"
Wallet Guy's avatar
Wallet Guy committed
160 161
                    android:alpha="0.1"
                    android:background="@color/white" />
Sarath's avatar
Sarath committed
162 163 164 165 166 167 168 169 170 171 172

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="12dp">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
Sarath's avatar
Sarath committed
173
                        android:text="@string/pool" />
Sarath's avatar
Sarath committed
174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193

                    <TextView
                        android:id="@+id/mixPool"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:background="?attr/selectableItemBackground"
                        android:paddingTop="6dp"
                        android:gravity="end"
                        android:layout_weight="1"
                        android:textColor="@color/text_secondary"
                        tools:text="000.54" />


                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_margin="12dp"
                    android:layout_marginTop="1dp"
Wallet Guy's avatar
Wallet Guy committed
194 195
                    android:alpha="0.1"
                    android:background="@color/white" />
Sarath's avatar
Sarath committed
196 197 198 199 200 201 202 203 204 205 206 207

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="12dp">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:layout_weight="1"
Sarath's avatar
Sarath committed
208
                        android:text="@string/confirmation" />
Sarath's avatar
Sarath committed
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228

                    <TextView
                        android:id="@+id/mixTxConfirmation"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="end"
                        android:layout_weight="1"
                        android:background="?attr/selectableItemBackground"
                        android:gravity="end"
                        android:textColor="@color/text_secondary"
                        tools:text="1234" />


                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_margin="12dp"
                    android:layout_marginTop="1dp"
Wallet Guy's avatar
Wallet Guy committed
229 230
                    android:alpha="0.1"
                    android:background="@color/white" />
Sarath's avatar
Sarath committed
231 232 233 234 235 236 237 238 239 240 241 242

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="12dp">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:layout_weight="1"
Sarath's avatar
Sarath committed
243
                        android:text="@string/mix_message" />
Sarath's avatar
Sarath committed
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263

                    <TextView
                        android:id="@+id/mixMessage"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="end"
                        android:layout_weight="1"
                        android:background="?attr/selectableItemBackground"
                        android:gravity="end"
                        android:textColor="@color/text_secondary"
                        tools:text="1234" />


                </LinearLayout>

                <View
                    android:layout_width="match_parent"
                    android:layout_height="1dp"
                    android:layout_margin="12dp"
                    android:layout_marginTop="1dp"
Wallet Guy's avatar
Wallet Guy committed
264 265
                    android:alpha="0.1"
                    android:background="@color/white" />
Sarath's avatar
Sarath committed
266 267 268 269 270 271 272 273 274 275 276 277

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:padding="12dp">

                    <TextView
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="start"
                        android:layout_weight="1"
Sarath's avatar
Sarath committed
278
                        android:text="@string/mix_error" />
Sarath's avatar
Sarath committed
279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301

                    <TextView
                        android:id="@+id/mixError"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:layout_gravity="end"
                        android:layout_weight="1"
                        android:background="?attr/selectableItemBackground"
                        android:gravity="end"
                        android:textColor="@color/text_secondary"
                        tools:text="1234" />


                </LinearLayout>

            </LinearLayout>


        </androidx.core.widget.NestedScrollView>
    </LinearLayout>


</androidx.coordinatorlayout.widget.CoordinatorLayout>