taler-android

Android apps for GNU Taler (wallet, PoS, cashier)
Log | Files | Refs | README | LICENSE

fragment_exchange_fees.xml (6435B)


      1 <?xml version="1.0" encoding="utf-8"?><!--
      2   ~ This file is part of GNU Taler
      3   ~ (C) 2020 Taler Systems S.A.
      4   ~
      5   ~ GNU Taler is free software; you can redistribute it and/or modify it under the
      6   ~ terms of the GNU General Public License as published by the Free Software
      7   ~ Foundation; either version 3, or (at your option) any later version.
      8   ~
      9   ~ GNU Taler is distributed in the hope that it will be useful, but WITHOUT ANY
     10   ~ WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
     11   ~ A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     12   ~
     13   ~ You should have received a copy of the GNU General Public License along with
     14   ~ GNU Taler; see the file COPYING.  If not, see <http://www.gnu.org/licenses/>
     15   -->
     16 
     17 <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
     18     xmlns:app="http://schemas.android.com/apk/res-auto"
     19     xmlns:tools="http://schemas.android.com/tools"
     20     android:layout_width="match_parent"
     21     android:layout_height="match_parent">
     22 
     23     <androidx.constraintlayout.widget.ConstraintLayout
     24         android:layout_width="match_parent"
     25         android:layout_height="wrap_content">
     26 
     27         <TextView
     28             android:id="@+id/withdrawFeeLabel"
     29             android:layout_width="wrap_content"
     30             android:layout_height="wrap_content"
     31             android:layout_marginStart="16dp"
     32             android:layout_marginTop="16dp"
     33             android:text="@string/exchange_fee_withdrawal_fee_label"
     34             app:layout_constraintStart_toStartOf="parent"
     35             app:layout_constraintTop_toTopOf="parent" />
     36 
     37         <TextView
     38             android:id="@+id/withdrawFeeView"
     39             android:layout_width="0dp"
     40             android:layout_height="wrap_content"
     41             android:layout_marginStart="8dp"
     42             android:layout_marginEnd="16dp"
     43             app:layout_constraintEnd_toEndOf="parent"
     44             app:layout_constraintStart_toEndOf="@+id/withdrawFeeLabel"
     45             app:layout_constraintTop_toTopOf="@+id/withdrawFeeLabel"
     46             tools:text="-0.23 TESTKUDOS"
     47             tools:textColor="?colorError" />
     48 
     49         <TextView
     50             android:id="@+id/overheadLabel"
     51             android:layout_width="wrap_content"
     52             android:layout_height="wrap_content"
     53             android:layout_marginTop="16dp"
     54             android:text="@string/exchange_fee_overhead_label"
     55             app:layout_constraintStart_toStartOf="@+id/withdrawFeeLabel"
     56             app:layout_constraintTop_toBottomOf="@+id/withdrawFeeLabel" />
     57 
     58         <TextView
     59             android:id="@+id/overheadView"
     60             android:layout_width="0dp"
     61             android:layout_height="wrap_content"
     62             android:layout_marginStart="8dp"
     63             app:layout_constraintEnd_toEndOf="@+id/withdrawFeeView"
     64             app:layout_constraintStart_toEndOf="@+id/overheadLabel"
     65             app:layout_constraintTop_toTopOf="@+id/overheadLabel"
     66             tools:text="-0.42 TESTKUDOS"
     67             tools:textColor="?colorError" />
     68 
     69         <TextView
     70             android:id="@+id/expirationLabel"
     71             android:layout_width="wrap_content"
     72             android:layout_height="wrap_content"
     73             android:layout_marginTop="16dp"
     74             android:text="@string/exchange_fee_coin_expiration_label"
     75             app:layout_constraintStart_toStartOf="@+id/withdrawFeeLabel"
     76             app:layout_constraintTop_toBottomOf="@+id/overheadLabel" />
     77 
     78         <TextView
     79             android:id="@+id/expirationView"
     80             android:layout_width="0dp"
     81             android:layout_height="wrap_content"
     82             android:layout_marginStart="8dp"
     83             android:layout_marginEnd="16dp"
     84             app:layout_constraintEnd_toEndOf="parent"
     85             app:layout_constraintStart_toEndOf="@+id/expirationLabel"
     86             app:layout_constraintTop_toTopOf="@+id/expirationLabel"
     87             tools:text="in 5 years" />
     88 
     89         <TextView
     90             android:id="@+id/coinFeesLabel"
     91             android:layout_width="wrap_content"
     92             android:layout_height="wrap_content"
     93             android:layout_marginTop="16dp"
     94             android:text="@string/exchange_fee_coin_fees_label"
     95             android:textColor="?android:attr/textColorPrimary"
     96             android:textSize="16sp"
     97             app:layout_constraintStart_toStartOf="@+id/withdrawFeeLabel"
     98             app:layout_constraintTop_toBottomOf="@+id/expirationLabel" />
     99 
    100         <androidx.recyclerview.widget.RecyclerView
    101             android:id="@+id/coinFeesList"
    102             android:layout_width="0dp"
    103             android:layout_height="wrap_content"
    104             android:layout_marginStart="16dp"
    105             android:layout_marginTop="8dp"
    106             android:layout_marginEnd="16dp"
    107             android:overScrollMode="never"
    108             app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
    109             app:layout_constraintEnd_toEndOf="parent"
    110             app:layout_constraintStart_toStartOf="parent"
    111             app:layout_constraintTop_toBottomOf="@+id/coinFeesLabel"
    112             tools:listitem="@layout/list_item_coin_fee" />
    113 
    114         <TextView
    115             android:id="@+id/wireFeesLabel"
    116             android:layout_width="wrap_content"
    117             android:layout_height="wrap_content"
    118             android:layout_marginTop="16dp"
    119             android:text="@string/exchange_fee_wire_fees_label"
    120             android:textColor="?android:attr/textColorPrimary"
    121             android:textSize="16sp"
    122             app:layout_constraintStart_toStartOf="@+id/withdrawFeeLabel"
    123             app:layout_constraintTop_toBottomOf="@+id/coinFeesList" />
    124 
    125         <androidx.recyclerview.widget.RecyclerView
    126             android:id="@+id/wireFeesList"
    127             android:layout_width="0dp"
    128             android:layout_height="wrap_content"
    129             android:layout_marginStart="16dp"
    130             android:layout_marginTop="8dp"
    131             android:layout_marginEnd="16dp"
    132             android:overScrollMode="never"
    133             app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
    134             app:layout_constraintEnd_toEndOf="parent"
    135             app:layout_constraintStart_toStartOf="parent"
    136             app:layout_constraintTop_toBottomOf="@+id/wireFeesLabel"
    137             tools:listitem="@layout/list_item_wire_fee" />
    138 
    139     </androidx.constraintlayout.widget.ConstraintLayout>
    140 </androidx.core.widget.NestedScrollView>