331 lines
16 KiB
XML
331 lines
16 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
android:id="@+id/main"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
tools:context=".masters.sales_screen_mobile.masters.PrinterPreference.Printerpreferencemain">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/_20dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:id="@+id/printback"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal"
|
|
android:gravity="start"
|
|
android:layout_gravity="center">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/sales_screen_back_icon">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:text="Printer Preference"
|
|
android:layout_gravity="center"
|
|
android:layout_marginStart="@dimen/_20dp"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black"
|
|
android:textSize="@dimen/dp_18">
|
|
</TextView>
|
|
</LinearLayout>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
app:cardCornerRadius="5dp">
|
|
<LinearLayout
|
|
android:id="@+id/usbconnection"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.2"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/appbar_padding"
|
|
android:gravity="center">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/usb_iconpng"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/usbconnecttext"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="USB Printer"
|
|
android:textColor="@color/black"
|
|
android:gravity="center"
|
|
android:textSize="15dp"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_gravity="center">
|
|
</TextView>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.2"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/dp_5"
|
|
android:gravity="center">
|
|
<ImageView
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/noun_right_arrow"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
app:cardCornerRadius="5dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/bluetooth_print"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.2"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/appbar_padding"
|
|
android:gravity="center">
|
|
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center"
|
|
android:src="@drawable/bluetoothicon">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="Connect Bluetooth Printer"
|
|
android:textColor="@color/black"
|
|
android:gravity="center"
|
|
android:textSize="15dp"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_gravity="center">
|
|
</TextView>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.2"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/dp_5"
|
|
android:gravity="center">
|
|
<ImageView
|
|
android:id="@+id/bluetoothicon"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/noun_right_arrow"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/blutooth_device"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/_20dp">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Paird devices"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500"/>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/paireddevicename"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/_20dp"
|
|
android:text=""
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/_20dp">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Available devices"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/availabledevice_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
|
|
<androidx.cardview.widget.CardView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="20dp"
|
|
app:cardCornerRadius="5dp">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:id="@+id/wifi_printer"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="horizontal">
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.2"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/appbar_padding"
|
|
android:gravity="center">
|
|
<ImageView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:src="@drawable/wifi_icon"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.8"
|
|
android:text="Connect Wifi Printer"
|
|
android:textColor="@color/black"
|
|
android:gravity="center"
|
|
android:textSize="15dp"
|
|
android:fontFamily="@font/inter_500"
|
|
android:layout_gravity="center">
|
|
</TextView>
|
|
<LinearLayout
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_weight="0.2"
|
|
android:layout_gravity="center"
|
|
android:padding="@dimen/dp_5"
|
|
android:gravity="center">
|
|
<ImageView
|
|
android:id="@+id/wifi_icon"
|
|
android:layout_width="25dp"
|
|
android:layout_height="25dp"
|
|
android:src="@drawable/noun_right_arrow"
|
|
android:layout_gravity="center">
|
|
</ImageView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:visibility="gone"
|
|
android:id="@+id/wifi_device"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/_20dp">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Paird devices"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500"/>
|
|
</LinearLayout>
|
|
<TextView
|
|
android:id="@+id/wifipaireddevicename"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginHorizontal="@dimen/_20dp"
|
|
android:text=""
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500"
|
|
android:textColor="@color/black">
|
|
</TextView>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:layout_margin="@dimen/_20dp">
|
|
<TextView
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="Available devices"
|
|
android:textSize="@dimen/dp_14"
|
|
android:fontFamily="@font/inter_500"/>
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="@dimen/dp_5"
|
|
android:orientation="vertical">
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
android:id="@+id/wifiavailabledevice_recycler"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical">
|
|
</androidx.recyclerview.widget.RecyclerView>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
</androidx.cardview.widget.CardView>
|
|
</LinearLayout>
|
|
</LinearLayout> |