taler-android

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

fragment_payment_success.xml (3530B)


      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.PaymentSuccessFragment">
     23 
     24     <ImageView
     25         android:id="@+id/paymentIcon"
     26         android:layout_width="0dp"
     27         android:layout_height="0dp"
     28         android:layout_margin="16dp"
     29         android:src="@drawable/ic_check_circle"
     30         app:layout_constraintBottom_toTopOf="@+id/paymentLabel"
     31         app:layout_constraintEnd_toEndOf="parent"
     32         app:layout_constraintHorizontal_bias="0.5"
     33         app:layout_constraintStart_toStartOf="parent"
     34         app:layout_constraintTop_toTopOf="parent"
     35         app:layout_constraintVertical_chainStyle="spread_inside"
     36         app:layout_constraintVertical_weight="1.6"
     37         tools:ignore="ContentDescription" />
     38 
     39     <TextView
     40         android:id="@+id/paymentLabel"
     41         android:layout_width="0dp"
     42         android:layout_height="0dp"
     43         android:layout_margin="16dp"
     44         android:gravity="center_horizontal|top"
     45         android:text="@string/payment_received"
     46         android:textColor="@color/green"
     47         app:autoSizeMaxTextSize="42sp"
     48         app:autoSizeTextType="uniform"
     49         app:layout_constraintVertical_weight="1.0"
     50         app:layout_constraintBottom_toTopOf="@+id/paymentButton"
     51         app:layout_constraintEnd_toEndOf="parent"
     52         app:layout_constraintStart_toStartOf="parent"
     53         app:layout_constraintTop_toBottomOf="@+id/paymentIcon" />
     54 
     55     <androidx.constraintlayout.widget.Guideline
     56         android:id="@+id/guidelineLeft"
     57         android:layout_width="wrap_content"
     58         android:layout_height="wrap_content"
     59         android:orientation="vertical"
     60         app:layout_constraintGuide_percent="0.2" />
     61 
     62     <androidx.constraintlayout.widget.Guideline
     63         android:id="@+id/guidelineRight"
     64         android:layout_width="wrap_content"
     65         android:layout_height="wrap_content"
     66         android:orientation="vertical"
     67         app:layout_constraintGuide_percent="0.8" />
     68 
     69     <Button
     70         android:id="@+id/paymentButton"
     71         android:layout_width="0dp"
     72         android:layout_height="wrap_content"
     73         android:layout_margin="16dp"
     74         android:minHeight="64dp"
     75         android:paddingVertical="14dp"
     76         android:text="@string/payment_back_button"
     77         android:textSize="20sp"
     78         app:layout_constraintBottom_toBottomOf="parent"
     79         app:layout_constraintEnd_toStartOf="@+id/guidelineRight"
     80         app:layout_constraintStart_toStartOf="@+id/guidelineLeft" />
     81 
     82 </androidx.constraintlayout.widget.ConstraintLayout>