taler-android

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

list_item_order.xml (3121B)


      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="wrap_content"
     22     android:background="@drawable/selectable_background"
     23     android:minHeight="48dp"
     24     android:padding="8dp">
     25 
     26     <TextView
     27         android:id="@+id/quantity"
     28         android:layout_width="0dp"
     29         android:layout_height="wrap_content"
     30         android:gravity="end"
     31         android:minWidth="24dp"
     32         app:layout_constraintBottom_toBottomOf="parent"
     33         app:layout_constraintStart_toStartOf="parent"
     34         app:layout_constraintTop_toTopOf="@+id/name"
     35         app:layout_constraintVertical_bias="0.0"
     36         tools:text="31" />
     37 
     38     <ImageView
     39         android:id="@+id/image"
     40         android:layout_width="32dp"
     41         android:layout_height="32dp"
     42         android:layout_marginHorizontal="10dp"
     43         app:layout_constraintTop_toTopOf="@id/name"
     44         app:layout_constraintBottom_toBottomOf="parent"
     45         app:layout_constraintStart_toEndOf="@id/quantity"
     46         android:visibility="gone"
     47         android:contentDescription="@string/product_image"
     48         app:layout_constraintVertical_bias="0.0"
     49         tools:visibility="visible"
     50         tools:src="@drawable/ic_launcher_background"/>
     51 
     52     <TextView
     53         android:id="@+id/name"
     54         android:layout_width="0dp"
     55         android:layout_height="wrap_content"
     56         android:layout_marginStart="8dp"
     57         android:layout_marginEnd="8dp"
     58         app:layout_constraintBottom_toBottomOf="parent"
     59         app:layout_constraintEnd_toStartOf="@+id/price"
     60         app:layout_constraintStart_toEndOf="@+id/image"
     61         app:layout_constraintTop_toTopOf="parent"
     62         tools:text="An order product item that in some cases could have a very long name" />
     63 
     64     <TextView
     65         android:id="@+id/price"
     66         android:layout_width="wrap_content"
     67         android:layout_height="wrap_content"
     68         app:layout_constraintBottom_toBottomOf="parent"
     69         app:layout_constraintEnd_toEndOf="parent"
     70         app:layout_constraintTop_toTopOf="@+id/name"
     71         app:layout_constraintVertical_bias="0.0"
     72         tools:text="23.42" />
     73 
     74 </androidx.constraintlayout.widget.ConstraintLayout>