taler-android

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

bottomsheet_error.xml (3647B)


      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:layout_height="500dp">
     23 
     24     <TextView
     25         android:id="@+id/mainText"
     26         android:layout_width="0dp"
     27         android:layout_height="wrap_content"
     28         android:layout_margin="16dp"
     29         android:textColor="?android:attr/textColorPrimary"
     30         app:layout_constrainedHeight="true"
     31         app:layout_constraintBottom_toTopOf="@+id/guideline"
     32         app:layout_constraintEnd_toStartOf="@+id/closeButton"
     33         app:layout_constraintStart_toStartOf="parent"
     34         app:layout_constraintTop_toTopOf="parent"
     35         tools:text="@tools:sample/lorem" />
     36 
     37     <ImageButton
     38         android:id="@+id/closeButton"
     39         android:layout_width="48dp"
     40         android:layout_height="48dp"
     41         android:background="?attr/selectableItemBackgroundBorderless"
     42         android:contentDescription="@string/close"
     43         android:src="@drawable/ic_close"
     44         app:layout_constraintBottom_toTopOf="@+id/guideline"
     45         app:layout_constraintEnd_toEndOf="parent"
     46         app:layout_constraintTop_toTopOf="parent"
     47         app:layout_constraintVertical_bias="0.0" />
     48 
     49     <androidx.constraintlayout.widget.Guideline
     50         android:id="@+id/guideline"
     51         android:layout_width="wrap_content"
     52         android:layout_height="wrap_content"
     53         android:orientation="horizontal"
     54         app:layout_constraintGuide_begin="@dimen/bottom_sheet_peek_height" />
     55 
     56     <TextView
     57         android:id="@+id/detailText"
     58         android:layout_width="0dp"
     59         android:layout_height="wrap_content"
     60         android:layout_margin="16dp"
     61         android:fontFamily="monospace"
     62         android:minHeight="48dp"
     63         android:textColor="@color/red"
     64         app:layout_constraintBottom_toBottomOf="parent"
     65         app:layout_constraintEnd_toStartOf="@+id/shareButton"
     66         app:layout_constraintStart_toStartOf="parent"
     67         app:layout_constraintTop_toTopOf="@+id/guideline"
     68         app:layout_constraintVertical_bias="0.0"
     69         tools:text="@tools:sample/lorem/random" />
     70 
     71     <ImageButton
     72         android:id="@+id/shareButton"
     73         android:layout_width="48dp"
     74         android:layout_height="48dp"
     75         android:layout_margin="16dp"
     76         android:background="?attr/selectableItemBackgroundBorderless"
     77         android:contentDescription="@string/share"
     78         app:layout_constraintBottom_toBottomOf="parent"
     79         app:layout_constraintEnd_toEndOf="parent"
     80         app:layout_constraintTop_toTopOf="@+id/guideline"
     81         app:layout_constraintVertical_bias="1.0"
     82         app:srcCompat="@drawable/ic_share" />
     83 
     84 </androidx.constraintlayout.widget.ConstraintLayout>