taler-android

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

fragment_payment_success.xml (3326B)


      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         tools:ignore="ContentDescription" />
     37 
     38     <TextView
     39         android:id="@+id/paymentLabel"
     40         android:layout_width="0dp"
     41         android:layout_height="0dp"
     42         android:layout_margin="16dp"
     43         android:gravity="center_horizontal|top"
     44         android:text="@string/payment_received"
     45         android:textColor="@color/green"
     46         app:autoSizeMaxTextSize="42sp"
     47         app:autoSizeTextType="uniform"
     48         app:layout_constraintBottom_toTopOf="@+id/paymentButton"
     49         app:layout_constraintEnd_toEndOf="parent"
     50         app:layout_constraintStart_toStartOf="parent"
     51         app:layout_constraintTop_toBottomOf="@+id/paymentIcon" />
     52 
     53     <androidx.constraintlayout.widget.Guideline
     54         android:id="@+id/guidelineLeft"
     55         android:layout_width="wrap_content"
     56         android:layout_height="wrap_content"
     57         android:orientation="vertical"
     58         app:layout_constraintGuide_percent="0.25" />
     59 
     60     <androidx.constraintlayout.widget.Guideline
     61         android:id="@+id/guidelineRight"
     62         android:layout_width="wrap_content"
     63         android:layout_height="wrap_content"
     64         android:orientation="vertical"
     65         app:layout_constraintGuide_percent="0.75" />
     66 
     67     <Button
     68         android:id="@+id/paymentButton"
     69         android:layout_width="0dp"
     70         android:layout_height="wrap_content"
     71         android:layout_margin="16dp"
     72         android:text="@string/payment_back_button"
     73         app:layout_constraintBottom_toBottomOf="parent"
     74         app:layout_constraintEnd_toStartOf="@+id/guidelineRight"
     75         app:layout_constraintStart_toStartOf="@+id/guidelineLeft" />
     76 
     77 </androidx.constraintlayout.widget.ConstraintLayout>