taler-android

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

fragment_review_exchange_tos.xml (4011B)


      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.constraintlayout.widget.ConstraintLayout 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     tools:context=".withdraw.ReviewExchangeTosFragment">
     23 
     24     <Spinner
     25         android:id="@+id/langSpinner"
     26         android:layout_width="wrap_content"
     27         android:layout_height="wrap_content"
     28         android:padding="10dp"
     29         app:layout_constraintHorizontal_bias="1"
     30         app:layout_constraintStart_toStartOf="parent"
     31         app:layout_constraintEnd_toEndOf="parent"
     32         app:layout_constraintTop_toTopOf="parent"
     33         android:visibility="gone"
     34         tools:visibility="visible"/>
     35 
     36     <androidx.recyclerview.widget.RecyclerView
     37         android:id="@+id/tosList"
     38         android:layout_width="0dp"
     39         android:layout_height="0dp"
     40         app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
     41         app:layout_constraintBottom_toTopOf="@+id/buttonCard"
     42         app:layout_constraintEnd_toEndOf="parent"
     43         app:layout_constraintStart_toStartOf="parent"
     44         app:layout_constraintTop_toBottomOf="@id/langSpinner"
     45         android:clipToPadding="false"
     46         tools:listitem="@layout/list_item_tos" />
     47 
     48     <ProgressBar
     49         android:id="@+id/progressBar"
     50         style="?android:attr/progressBarStyleLarge"
     51         android:layout_width="wrap_content"
     52         android:layout_height="wrap_content"
     53         app:layout_constraintBottom_toBottomOf="@+id/tosList"
     54         app:layout_constraintEnd_toEndOf="parent"
     55         app:layout_constraintStart_toStartOf="parent"
     56         app:layout_constraintTop_toTopOf="parent" />
     57 
     58     <TextView
     59         android:id="@+id/errorView"
     60         android:layout_width="0dp"
     61         android:layout_height="wrap_content"
     62         android:layout_margin="16dp"
     63         android:gravity="center"
     64         android:textColor="?colorError"
     65         android:textSize="16sp"
     66         android:visibility="invisible"
     67         app:layout_constraintBottom_toBottomOf="parent"
     68         app:layout_constraintEnd_toEndOf="parent"
     69         app:layout_constraintStart_toStartOf="parent"
     70         app:layout_constraintTop_toTopOf="parent"
     71         tools:text="@string/exchange_tos_error"
     72         tools:visibility="visible" />
     73 
     74     <com.google.android.material.card.MaterialCardView
     75         android:id="@+id/buttonCard"
     76         style="@style/BottomCard"
     77         android:layout_width="0dp"
     78         android:layout_height="wrap_content"
     79         app:layout_constraintBottom_toBottomOf="parent"
     80         app:layout_constraintEnd_toEndOf="parent"
     81         app:layout_constraintStart_toStartOf="parent">
     82 
     83         <CheckBox
     84             android:id="@+id/acceptTosCheckBox"
     85             android:layout_width="wrap_content"
     86             android:layout_height="wrap_content"
     87             android:layout_marginStart="8dp"
     88             android:layout_marginEnd="8dp"
     89             android:text="@string/exchange_tos_accept"
     90             android:visibility="invisible"
     91             tools:visibility="visible" />
     92 
     93     </com.google.android.material.card.MaterialCardView>
     94 
     95 </androidx.constraintlayout.widget.ConstraintLayout>