taler-android

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

fragment_process_payment.xml (5979B)


      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=".payment.ProcessPaymentFragment">
     23 
     24     <androidx.constraintlayout.widget.ConstraintLayout
     25         android:id="@+id/qrcodeLayout"
     26         android:layout_width="0dp"
     27         android:layout_height="0dp"
     28         android:layout_margin="12dp"
     29         app:layout_constraintBottom_toBottomOf="parent"
     30         app:layout_constraintEnd_toStartOf="@+id/guideline"
     31         app:layout_constraintStart_toStartOf="parent"
     32         app:layout_constraintTop_toTopOf="parent"
     33         android:visibility="invisible"
     34         tools:visibility="visible">
     35 
     36         <ImageView
     37             android:id="@+id/qrcodeView"
     38             android:layout_width="match_parent"
     39             android:layout_height="0dp"
     40             android:layout_margin="12dp"
     41             app:layout_constraintStart_toStartOf="parent"
     42             app:layout_constraintEnd_toEndOf="parent"
     43             app:layout_constraintTop_toTopOf="parent"
     44             app:layout_constraintBottom_toTopOf="@id/shareButton"
     45             tools:ignore="ContentDescription"
     46             tools:src="@tools:sample/avatars" />
     47 
     48         <Button
     49             android:id="@+id/shareButton"
     50             android:layout_width="wrap_content"
     51             android:layout_height="wrap_content"
     52             app:layout_constraintBottom_toBottomOf="parent"
     53             app:layout_constraintStart_toStartOf="parent"
     54             app:layout_constraintEnd_toStartOf="@id/copyButton"
     55             android:text="@string/share"/>
     56 
     57         <Button
     58             android:id="@+id/copyButton"
     59             android:layout_width="wrap_content"
     60             android:layout_height="wrap_content"
     61             app:layout_constraintBottom_toBottomOf="parent"
     62             app:layout_constraintEnd_toEndOf="parent"
     63             app:layout_constraintStart_toEndOf="@id/shareButton"
     64             android:text="@string/copy"/>
     65 
     66     </androidx.constraintlayout.widget.ConstraintLayout>
     67 
     68     <ProgressBar
     69         android:id="@+id/progressBar"
     70         style="?android:attr/progressBarStyleLarge"
     71         android:layout_width="wrap_content"
     72         android:layout_height="wrap_content"
     73         app:layout_constraintBottom_toBottomOf="@+id/qrcodeLayout"
     74         app:layout_constraintEnd_toEndOf="@+id/qrcodeLayout"
     75         app:layout_constraintStart_toStartOf="@+id/qrcodeLayout"
     76         app:layout_constraintTop_toTopOf="@+id/qrcodeLayout" />
     77 
     78     <androidx.constraintlayout.widget.Guideline
     79         android:id="@+id/guideline"
     80         android:layout_width="wrap_content"
     81         android:layout_height="wrap_content"
     82         android:orientation="vertical"
     83         app:layout_constraintGuide_percent="0.54" />
     84 
     85     <TextView
     86         android:id="@+id/payIntroView"
     87         android:layout_width="0dp"
     88         android:layout_height="wrap_content"
     89         android:layout_margin="16dp"
     90         android:text="@string/payment_intro_nfc"
     91         android:textAlignment="center"
     92         android:textSize="22sp"
     93         android:visibility="invisible"
     94         app:layout_constraintBottom_toTopOf="@+id/amountView"
     95         app:layout_constraintEnd_toEndOf="parent"
     96         app:layout_constraintStart_toStartOf="@+id/guideline"
     97         app:layout_constraintTop_toTopOf="parent"
     98         app:layout_constraintVertical_chainStyle="spread"
     99         tools:visibility="visible" />
    100 
    101     <TextView
    102         android:id="@+id/amountView"
    103         android:layout_width="wrap_content"
    104         android:layout_height="wrap_content"
    105         android:layout_margin="16dp"
    106         android:textAppearance="@style/TextAppearance.AppCompat.Headline"
    107         app:layout_constraintBottom_toTopOf="@+id/orderRefView"
    108         app:layout_constraintEnd_toEndOf="parent"
    109         app:layout_constraintStart_toStartOf="@+id/guideline"
    110         app:layout_constraintTop_toBottomOf="@+id/payIntroView"
    111         tools:text="10.49 TESTKUDOS" />
    112 
    113     <TextView
    114         android:id="@+id/orderRefView"
    115         android:layout_width="0dp"
    116         android:layout_height="wrap_content"
    117         android:layout_margin="16dp"
    118         android:textAlignment="center"
    119         android:visibility="invisible"
    120         app:layout_constraintBottom_toTopOf="@id/cancelPaymentButton"
    121         app:layout_constraintEnd_toEndOf="parent"
    122         app:layout_constraintStart_toStartOf="@+id/guideline"
    123         app:layout_constraintTop_toBottomOf="@+id/amountView"
    124         tools:text="@string/payment_order_id"
    125         tools:visibility="visible" />
    126 
    127     <Button
    128         android:id="@+id/cancelPaymentButton"
    129         android:layout_width="wrap_content"
    130         android:layout_height="wrap_content"
    131         android:layout_margin="16dp"
    132         android:backgroundTint="@color/red"
    133         android:text="@string/payment_cancel"
    134         app:layout_constraintBottom_toBottomOf="parent"
    135         app:layout_constraintEnd_toEndOf="parent"
    136         app:layout_constraintHorizontal_bias="0.0"
    137         app:layout_constraintStart_toStartOf="@+id/guideline" />
    138 
    139 </androidx.constraintlayout.widget.ConstraintLayout>