taler-android

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

fragment_order.xml (7104B)


      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 
     23     <androidx.fragment.app.FragmentContainerView
     24         android:id="@+id/fragment1"
     25         android:layout_width="0dp"
     26         android:layout_height="0dp"
     27         android:layout_marginBottom="8dp"
     28         app:layout_constraintBottom_toTopOf="@+id/buttonBar"
     29         app:layout_constraintEnd_toStartOf="@+id/guideline1"
     30         app:layout_constraintStart_toStartOf="parent"
     31         app:layout_constraintTop_toTopOf="parent"
     32         tools:layout="@layout/fragment_order_state" />
     33 
     34     <androidx.constraintlayout.widget.Guideline
     35         android:id="@+id/guideline1"
     36         android:layout_width="wrap_content"
     37         android:layout_height="wrap_content"
     38         android:orientation="vertical"
     39         app:layout_constraintGuide_percent="0.25" />
     40 
     41     <androidx.fragment.app.FragmentContainerView
     42         android:id="@+id/fragment2"
     43         android:name="net.taler.merchantpos.order.ProductsFragment"
     44         android:layout_width="0dp"
     45         android:layout_height="0dp"
     46         android:layout_marginBottom="8dp"
     47         app:layout_constraintBottom_toTopOf="@+id/buttonBar"
     48         app:layout_constraintEnd_toStartOf="@+id/guideline2"
     49         app:layout_constraintStart_toStartOf="@+id/guideline1"
     50         app:layout_constraintTop_toTopOf="parent"
     51         tools:layout="@layout/fragment_products" />
     52 
     53     <androidx.constraintlayout.widget.Guideline
     54         android:id="@+id/guideline2"
     55         android:layout_width="wrap_content"
     56         android:layout_height="wrap_content"
     57         android:orientation="vertical"
     58         app:layout_constraintGuide_percent="0.75" />
     59 
     60     <androidx.fragment.app.FragmentContainerView
     61         android:id="@+id/fragment3"
     62         android:name="net.taler.merchantpos.order.CategoriesFragment"
     63         android:layout_width="0dp"
     64         android:layout_height="0dp"
     65         android:layout_marginBottom="8dp"
     66         app:layout_constraintBottom_toTopOf="@+id/buttonBar"
     67         app:layout_constraintEnd_toEndOf="parent"
     68         app:layout_constraintStart_toStartOf="@+id/guideline2"
     69         app:layout_constraintTop_toTopOf="parent"
     70         tools:layout="@layout/fragment_categories" />
     71 
     72     <HorizontalScrollView
     73         android:id="@+id/buttonBar"
     74         android:layout_width="0dp"
     75         android:layout_height="wrap_content"
     76         android:scrollbars="horizontal"
     77         android:fadeScrollbars="false"
     78         app:layout_constraintStart_toStartOf="parent"
     79         app:layout_constraintBottom_toBottomOf="parent"
     80         app:layout_constraintEnd_toStartOf="@id/completeButton">
     81 
     82         <LinearLayout
     83             android:layout_width="wrap_content"
     84             android:layout_height="wrap_content"
     85             android:orientation="horizontal">
     86 
     87             <Button
     88                 android:id="@+id/restartButton"
     89                 android:layout_width="wrap_content"
     90                 android:layout_height="wrap_content"
     91                 android:layout_marginStart="8dp"
     92                 android:backgroundTint="@color/button_bottom"
     93                 android:text="@string/order_restart"
     94                 app:layout_constraintBottom_toBottomOf="parent"
     95                 app:layout_constraintStart_toStartOf="parent" />
     96 
     97             <Button
     98                 android:id="@+id/plusButton"
     99                 android:layout_width="wrap_content"
    100                 android:layout_height="wrap_content"
    101                 android:layout_marginStart="16dp"
    102                 android:minWidth="48dp"
    103                 android:text="+1"
    104                 app:layout_constraintBottom_toBottomOf="parent"
    105                 app:layout_constraintStart_toEndOf="@+id/minusButton"
    106                 tools:ignore="HardcodedText" />
    107 
    108             <Button
    109                 android:id="@+id/minusButton"
    110                 android:layout_width="wrap_content"
    111                 android:layout_height="wrap_content"
    112                 android:layout_marginStart="8dp"
    113                 android:minWidth="48dp"
    114                 android:text="-1"
    115                 app:layout_constraintBottom_toBottomOf="parent"
    116                 app:layout_constraintStart_toEndOf="@+id/restartButton"
    117                 tools:ignore="HardcodedText" />
    118 
    119             <Button
    120                 android:id="@+id/prevButton"
    121                 android:layout_width="wrap_content"
    122                 android:layout_height="wrap_content"
    123                 android:layout_marginStart="16dp"
    124                 android:backgroundTint="@color/button_bottom"
    125                 android:text="@string/order_previous"
    126                 app:layout_constraintBottom_toBottomOf="parent"
    127                 app:layout_constraintStart_toEndOf="@+id/plusButton" />
    128 
    129             <Button
    130                 android:id="@+id/nextButton"
    131                 android:layout_width="wrap_content"
    132                 android:layout_height="wrap_content"
    133                 android:layout_marginStart="8dp"
    134                 android:backgroundTint="@color/button_bottom"
    135                 android:text="@string/order_next"
    136                 app:layout_constraintBottom_toBottomOf="parent"
    137                 app:layout_constraintStart_toEndOf="@+id/prevButton" />
    138 
    139             <ImageButton
    140                 android:id="@+id/customButton"
    141                 android:layout_width="48dp"
    142                 android:layout_height="48dp"
    143                 android:layout_marginStart="16dp"
    144                 android:layout_marginEnd="8dp"
    145                 android:backgroundTint="?colorPrimary"
    146                 app:srcCompat="@drawable/ic_dialpad"
    147                 android:contentDescription="@string/order_custom" />
    148 
    149         </LinearLayout>
    150 
    151     </HorizontalScrollView>
    152 
    153     <Button
    154         android:id="@+id/completeButton"
    155         android:layout_width="wrap_content"
    156         android:layout_height="wrap_content"
    157         android:layout_marginEnd="8dp"
    158         android:backgroundTint="@color/complete_button_bottom"
    159         android:text="@string/order_complete"
    160         app:layout_constraintBottom_toBottomOf="parent"
    161         app:layout_constraintEnd_toEndOf="parent"
    162         app:layout_constraintHorizontal_bias="1.0" />
    163 
    164 </androidx.constraintlayout.widget.ConstraintLayout>