fragment_choose_pools.xml 5.52 KB
Newer Older
Sarath's avatar
Sarath committed
1
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
2 3 4 5
    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"
6
    tools:context="com.samourai.wallet.whirlpool.newPool.fragments.SelectPoolFragment">
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 34 35 36 37 38 39 40 41 42 43 44
    <com.google.android.material.progressindicator.CircularProgressIndicator
        android:id="@+id/poolLoadingProgress"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:indeterminate="true"
        app:indicatorColor="@color/white"
        app:layout_constraintBottom_toBottomOf="@+id/poolRecyclerView"
        app:layout_constraintEnd_toEndOf="@+id/fetchPoolRetryButton"
        app:layout_constraintStart_toStartOf="@+id/fetchPoolRetryButton"
        app:layout_constraintTop_toTopOf="@+id/poolRecyclerView"
        app:trackColor="@android:color/transparent">

    </com.google.android.material.progressindicator.CircularProgressIndicator>


    <com.google.android.material.button.MaterialButton
        android:id="@+id/fetchPoolRetryButton"
        style="@style/Widget.MaterialComponents.Button.TextButton"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:elevation="10dp"
        app:elevation="0dp"
        android:shadowColor="@color/transparent"
        android:text="@string/retry"
        android:textAllCaps="false"
        android:textColor="@color/white"
        app:backgroundTint="?attr/backgroundColor"
        android:textColorLink="?attr/colorAccent"
        android:textSize="14sp"
        android:visibility="gone"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="@+id/poolRecyclerView"
        app:layout_constraintStart_toStartOf="@+id/poolRecyclerView"
        app:layout_constraintTop_toTopOf="@+id/poolRecyclerView"
        tools:visibility="visible" />

Sarath's avatar
Sarath committed
45
    <androidx.recyclerview.widget.RecyclerView
46
        android:id="@+id/poolRecyclerView"
47 48
        android:layout_width="0dp"
        android:layout_height="0dp"
Sarath's avatar
Sarath committed
49
        android:layout_marginStart="8dp"
Sarath's avatar
Sarath committed
50 51
        android:scrollbars="vertical"
        android:scrollbarAlwaysDrawVerticalTrack="true"
52
        android:layout_marginTop="16dp"
Sarath's avatar
Sarath committed
53
        android:layout_marginEnd="8dp"
54 55 56
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintStart_toStartOf="parent"
57
        app:layout_constraintTop_toBottomOf="@+id/poolFee" />
58 59 60 61 62 63 64 65 66 67 68 69


    <TextView
        android:id="@+id/textView22"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginStart="16dp"
        android:layout_marginTop="16dp"
        android:text="Cycle Priority"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent" />

70 71

    <com.google.android.material.button.MaterialButton
72
        android:id="@+id/feeLowBtn"
73
        android:layout_width="wrap_content"
74
        android:layout_height="54dp"
75 76 77
        android:layout_marginTop="16dp"
        android:text="LOW"
        android:textAllCaps="true"
78 79
        android:textColor="@color/txt_grey"
        app:backgroundTint="@color/windowDark"
80 81
        app:cornerRadius="4dp"
        app:layout_constraintEnd_toStartOf="@+id/feeNormalBtn"
82 83
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="parent"
84 85
        app:layout_constraintTop_toBottomOf="@+id/textView22"
        app:rippleColor="@color/white"
86 87
        app:strokeColor="@color/white"
        app:strokeWidth="1dp" />
88

89
    <com.google.android.material.button.MaterialButton
90
        android:id="@+id/feeNormalBtn"
91
        android:layout_width="wrap_content"
92
        android:layout_height="54dp"
93
        android:text="NORMAL"
94 95
        android:textColor="@color/white"
        app:backgroundTint="@color/blue_ui_2"
96 97 98
        app:cornerRadius="4dp"
        app:layout_constraintBottom_toBottomOf="@+id/feeLowBtn"
        app:layout_constraintEnd_toStartOf="@+id/feeHighBtn"
99
        app:layout_constraintHorizontal_bias="0.5"
100 101 102 103
        app:layout_constraintStart_toEndOf="@+id/feeLowBtn"
        app:layout_constraintTop_toTopOf="@+id/feeLowBtn"
        app:strokeColor="@color/txt_grey"
        app:strokeWidth="1dp" />
104

105
    <com.google.android.material.button.MaterialButton
106
        android:id="@+id/feeHighBtn"
107
        android:layout_width="wrap_content"
108
        android:layout_height="54dp"
109
        android:text="High"
110 111
        android:textColor="@color/white"
        app:backgroundTint="@color/windowDark"
112 113
        app:cornerRadius="4dp"
        app:layout_constraintBottom_toBottomOf="@+id/feeNormalBtn"
114 115
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
116 117 118 119
        app:layout_constraintStart_toEndOf="@+id/feeNormalBtn"
        app:layout_constraintTop_toTopOf="@+id/feeNormalBtn"
        app:strokeColor="@color/txt_grey"
        app:strokeWidth="1dp" />
120

121
    <TextView
122
        android:id="@+id/poolFee"
123 124 125
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginTop="16dp"
126
        android:textColor="@color/white"
127
        app:layout_constraintEnd_toEndOf="@+id/feeLowBtn"
128
        app:layout_constraintHorizontal_bias="0.0"
129 130
        app:layout_constraintStart_toStartOf="@+id/feeLowBtn"
        app:layout_constraintTop_toBottomOf="@+id/feeLowBtn"
131 132
        tools:text="20 b" />

133

Sarath's avatar
Sarath committed
134
</androidx.constraintlayout.widget.ConstraintLayout>