taler-android

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

payment_bottom_bar.xml (5798B)


      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 <com.google.android.material.card.MaterialCardView 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:id="@+id/bottomView"
     21     style="@style/BottomCard"
     22     android:layout_width="0dp"
     23     android:layout_height="wrap_content"
     24     tools:showIn="@layout/fragment_prompt_payment">
     25 
     26     <androidx.constraintlayout.widget.ConstraintLayout
     27         android:id="@+id/bottomLayout"
     28         android:layout_width="match_parent"
     29         android:layout_height="wrap_content">
     30 
     31         <TextView
     32             android:id="@+id/totalLabelView"
     33             android:layout_width="wrap_content"
     34             android:layout_height="wrap_content"
     35             android:layout_marginStart="8dp"
     36             android:layout_marginTop="8dp"
     37             android:text="@string/amount_total_label"
     38             android:visibility="invisible"
     39             app:layout_constraintBottom_toTopOf="@+id/confirmButton"
     40             app:layout_constraintEnd_toStartOf="@+id/totalView"
     41             app:layout_constraintHorizontal_bias="1.0"
     42             app:layout_constraintHorizontal_chainStyle="packed"
     43             app:layout_constraintStart_toStartOf="parent"
     44             app:layout_constraintTop_toTopOf="parent"
     45             app:layout_constraintVertical_bias="0.0"
     46             tools:visibility="visible" />
     47 
     48         <TextView
     49             android:id="@+id/totalView"
     50             android:layout_width="wrap_content"
     51             android:layout_height="wrap_content"
     52             android:layout_marginStart="8dp"
     53             android:layout_marginTop="8dp"
     54             android:layout_marginEnd="8dp"
     55             android:textColor="?android:attr/textColorPrimary"
     56             android:textStyle="bold"
     57             android:visibility="invisible"
     58             app:layout_constraintBottom_toTopOf="@+id/feeView"
     59             app:layout_constraintEnd_toEndOf="parent"
     60             app:layout_constraintHorizontal_bias="1.0"
     61             app:layout_constraintHorizontal_chainStyle="packed"
     62             app:layout_constraintStart_toEndOf="@+id/totalLabelView"
     63             app:layout_constraintTop_toTopOf="parent"
     64             app:layout_constraintVertical_bias="0.0"
     65             tools:text="10 TESTKUDOS"
     66             tools:visibility="visible" />
     67 
     68         <TextView
     69             android:id="@+id/feeView"
     70             android:layout_width="wrap_content"
     71             android:layout_height="wrap_content"
     72             android:layout_marginStart="8dp"
     73             android:layout_marginEnd="8dp"
     74             android:visibility="gone"
     75             app:layout_constraintBottom_toTopOf="@+id/confirmButton"
     76             app:layout_constraintEnd_toEndOf="parent"
     77             app:layout_constraintHorizontal_bias="1.0"
     78             app:layout_constraintStart_toStartOf="parent"
     79             app:layout_constraintTop_toBottomOf="@+id/totalView"
     80             tools:text="@string/payment_fee"
     81             tools:visibility="visible" />
     82 
     83         <Button
     84             android:id="@+id/cancelButton"
     85             android:layout_width="wrap_content"
     86             android:layout_height="wrap_content"
     87             android:layout_margin="8dp"
     88             android:enabled="false"
     89             style="@style/Widget.Material3.Button.OutlinedButton"
     90             android:text="@string/payment_button_cancel"
     91             android:textColor="?colorError"
     92             app:layout_constraintBottom_toBottomOf="parent"
     93             app:layout_constraintEnd_toStartOf="@id/confirmButton"
     94             app:layout_constraintHorizontal_bias="0.0"
     95             app:layout_constraintStart_toStartOf="parent"
     96             app:layout_constraintTop_toBottomOf="@+id/feeView"
     97             tools:enabled="true" />
     98 
     99         <Button
    100             android:id="@+id/confirmButton"
    101             android:layout_width="wrap_content"
    102             android:layout_height="wrap_content"
    103             android:layout_margin="8dp"
    104             android:enabled="false"
    105             android:text="@string/payment_button_confirm"
    106             app:layout_constraintBottom_toBottomOf="parent"
    107             app:layout_constraintEnd_toEndOf="parent"
    108             app:layout_constraintHorizontal_bias="1.0"
    109             app:layout_constraintStart_toStartOf="parent"
    110             app:layout_constraintTop_toBottomOf="@+id/feeView"
    111             tools:enabled="true"/>
    112 
    113         <ProgressBar
    114             android:id="@+id/confirmProgressBar"
    115             style="?android:attr/progressBarStyle"
    116             android:layout_width="wrap_content"
    117             android:layout_height="wrap_content"
    118             android:visibility="invisible"
    119             app:layout_constraintBottom_toBottomOf="@+id/confirmButton"
    120             app:layout_constraintEnd_toEndOf="@+id/confirmButton"
    121             app:layout_constraintStart_toStartOf="@+id/confirmButton"
    122             app:layout_constraintTop_toTopOf="@+id/confirmButton"
    123             tools:visibility="visible" />
    124 
    125     </androidx.constraintlayout.widget.ConstraintLayout>
    126 
    127 </com.google.android.material.card.MaterialCardView>