taler-android

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

fragment_order.xml (6588B)


      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/orderControlsBar"
     29         app:layout_constraintEnd_toEndOf="parent"
     30         app:layout_constraintStart_toStartOf="@+id/guideline2"
     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_toBottomOf="parent"
     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     <View
     61         android:id="@+id/orderDivider"
     62         android:layout_width="1dp"
     63         android:layout_height="0dp"
     64         android:background="?attr/colorOutlineVariant"
     65         app:layout_constraintBottom_toBottomOf="parent"
     66         app:layout_constraintEnd_toEndOf="@id/guideline2"
     67         app:layout_constraintStart_toStartOf="@id/guideline2"
     68         app:layout_constraintTop_toTopOf="parent" />
     69 
     70     <androidx.fragment.app.FragmentContainerView
     71         android:id="@+id/fragment3"
     72         android:name="net.taler.merchantpos.order.CategoriesFragment"
     73         android:layout_width="0dp"
     74         android:layout_height="0dp"
     75         android:layout_marginBottom="8dp"
     76         app:layout_constraintBottom_toBottomOf="parent"
     77         app:layout_constraintEnd_toStartOf="@+id/guideline1"
     78         app:layout_constraintStart_toStartOf="parent"
     79         app:layout_constraintTop_toTopOf="parent"
     80         tools:layout="@layout/fragment_categories" />
     81 
     82     <HorizontalScrollView
     83         android:id="@+id/orderControlsBar"
     84         android:layout_width="0dp"
     85         android:layout_height="wrap_content"
     86         android:layout_marginBottom="12dp"
     87         android:fadeScrollbars="false"
     88         android:scrollbars="horizontal"
     89         app:layout_constraintBottom_toTopOf="@id/completeButton"
     90         app:layout_constraintEnd_toEndOf="parent"
     91         app:layout_constraintStart_toStartOf="@id/guideline2">
     92 
     93         <LinearLayout
     94             android:layout_width="wrap_content"
     95             android:layout_height="wrap_content"
     96             android:orientation="horizontal">
     97 
     98             <Button
     99                 android:id="@+id/plusButton"
    100                 android:layout_width="wrap_content"
    101                 android:layout_height="wrap_content"
    102                 android:layout_marginStart="12dp"
    103                 android:backgroundTint="@color/order_control_button_background"
    104                 android:minWidth="48dp"
    105                 android:text="+1"
    106                 android:textColor="@color/order_control_button_text"
    107                 tools:ignore="HardcodedText" />
    108 
    109             <Button
    110                 android:id="@+id/minusButton"
    111                 android:layout_width="wrap_content"
    112                 android:layout_height="wrap_content"
    113                 android:layout_marginStart="12dp"
    114                 android:backgroundTint="@color/order_control_button_background"
    115                 android:minWidth="48dp"
    116                 android:text="-1"
    117                 android:textColor="@color/order_control_button_text"
    118                 tools:ignore="HardcodedText" />
    119 
    120             <Button
    121                 android:id="@+id/tipButton"
    122                 android:layout_width="wrap_content"
    123                 android:layout_height="wrap_content"
    124                 android:layout_marginStart="12dp"
    125                 android:layout_marginEnd="12dp"
    126                 android:backgroundTint="@color/order_control_button_background"
    127                 android:minWidth="48dp"
    128                 android:text="@string/order_custom_product_default"
    129                 android:textColor="@color/order_control_button_text" />
    130         </LinearLayout>
    131 
    132     </HorizontalScrollView>
    133 
    134     <com.google.android.material.button.MaterialButton
    135         android:id="@+id/completeButton"
    136         android:layout_width="0dp"
    137         android:layout_height="96dp"
    138         android:backgroundTint="@color/complete_button_bottom"
    139         android:insetLeft="0dp"
    140         android:insetTop="0dp"
    141         android:insetRight="0dp"
    142         android:insetBottom="0dp"
    143         android:maxLines="1"
    144         android:minWidth="0dp"
    145         android:minHeight="0dp"
    146         android:text="@string/order_complete"
    147         android:textSize="18sp"
    148         android:textStyle="bold"
    149         app:cornerRadius="0dp"
    150         app:layout_constraintBottom_toBottomOf="parent"
    151         app:layout_constraintEnd_toEndOf="parent"
    152         app:layout_constraintStart_toStartOf="@+id/guideline2" />
    153 
    154 </androidx.constraintlayout.widget.ConstraintLayout>