fragment_settings_printer_mileage.xml 10 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/whitecolor"
    android:orientation="vertical"
    android:paddingStart="@dimen/padding_start_ten"
    android:paddingEnd="@dimen/padding_end_ten"
    tools:context=".fragments.SettingsFrag">

    <HorizontalScrollView
        android:id="@+id/horitxt"
        android:layout_width="wrap_content"
        android:layout_height="@dimen/twentyfive_height"
        android:layout_marginTop="@dimen/layout_marginTop_five"
        android:scrollbarThumbHorizontal="@color/transparent"
        android:scrollbars="horizontal">

        <LinearLayout
            android:layout_width="wrap_content"
            android:layout_height="match_parent"
            android:orientation="horizontal">

            <TextView
                android:id="@+id/dashboard_txt"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:gravity="center"
                android:text="@string/dashboard_txt"
                android:textColor="@color/yellowcolor"
                android:textSize="@dimen/fifteenText_size" />

            <ImageView
                android:layout_width="@dimen/twelve_width"
                android:layout_height="@dimen/twelve_height"
                android:layout_gravity="center"
                android:layout_marginStart="@dimen/layout_marginstart_five"
                android:src="@drawable/icon_forward"
                android:tint="@color/textcolor" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:gravity="center"
                android:text="@string/printer_setting_mileage"
                android:textColor="@color/textcolor"
                android:textSize="@dimen/fifteenText_size" />

        </LinearLayout>
    </HorizontalScrollView>
    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/layout_marginTop_five"
            android:orientation="vertical">
        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/layout_marginTop_five"
            android:orientation="horizontal">
        <TextView
                android:id="@+id/tv_setting_mileage"
                android:layout_width="wrap_content"
                android:layout_height="@dimen/forty_fiveheight"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:paddingStart="@dimen/padding_two"
                android:paddingEnd="@dimen/padding_two"
                android:text="setting mileage"
                android:textSize="@dimen/fifteenText_size"/>

        <ImageView
                android:id="@+id/scanIcon"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:src="@drawable/scanner"
                android:clickable="true"
                android:contentDescription="@string/safe_temp_range_Txt"
                android:layout_gravity="end"
                android:layout_marginStart="@dimen/layout_marginEnd_ten"/>
            <Button
                    android:id="@+id/store_bind_printer"
                    android:layout_width="100dp"
                    android:layout_height="match_parent"
                    android:layout_marginStart="@dimen/layout_marginstart_ten"
                    android:background="@drawable/bg_spinner_circle"
                    android:text="bind printer"
                    android:layout_gravity="right"
                    android:textColor="@color/yellowcolor"
                    android:textSize="@dimen/fourteenText_size"
            />
        </LinearLayout>
        <EditText
                android:id="@+id/mileage_size_txt"
                android:layout_width="match_parent"
                android:layout_height="@dimen/forty_fiveheight"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:background="@drawable/bg_spinner_circle"
                android:hint="number"
                android:inputType="textAutoComplete"
                android:paddingEnd="@dimen/padding_two"
                android:textColor="@color/textcolor"
                android:textColorHint="@color/textcolor"
                android:textSize="@dimen/fifteenText_size" />
        <TextView
                android:id="@+id/save_txt"
                android:layout_width="match_parent"
                android:layout_height="@dimen/forty_fiveheight"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:text="@string/save_txtbusiness"
                android:textColor="@color/yellowcolor"
                android:textSize="@dimen/fourteenText_size"
        />
    </LinearLayout>
    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/layout_marginTop_five"
            android:orientation="horizontal">
            <TextView
                    android:id="@+id/tv_rest_mileage"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:background="@drawable/bg_spinner_circle"
                    android:gravity="center"
                    android:paddingStart="@dimen/padding_two"
                    android:paddingEnd="@dimen/padding_two"
                    android:text="rest mileage"
                    android:textSize="@dimen/fifteenText_size"/>

        <TextView
                android:id="@+id/tv_rest_mileage_number"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:layout_width="80dp"
                android:layout_height="match_parent"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:paddingStart="@dimen/padding_two"
                android:paddingEnd="@dimen/padding_two"
                android:text=""
                android:textSize="@dimen/fifteenText_size"/>
        <Button
                android:id="@+id/select_rest_mileage"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:text="SELECT"
                android:textColor="@color/yellowcolor"
                android:textSize="@dimen/fourteenText_size"
        />
    </LinearLayout>

    <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginTop="@dimen/layout_marginTop_five"
            android:orientation="horizontal">
        <Button
                android:id="@+id/select__user_bind_printer"
                android:layout_width="0dp"
                android:layout_weight="1.0"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:text="bind printer"
                android:textColor="@color/yellowcolor"
                android:textSize="@dimen/fourteenText_size"
        />
        <Button
                android:id="@+id/select_printer_use_records"
                android:layout_width="0dp"
                android:layout_weight="1.0"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:text="use recordsr"
                android:textColor="@color/yellowcolor"
                android:textSize="@dimen/fourteenText_size"
        />
        <Button
                android:id="@+id/select_user_recharge_records"
                android:layout_width="0dp"
                android:layout_weight="1.0"
                android:layout_height="match_parent"
                android:layout_marginStart="@dimen/layout_marginstart_ten"
                android:background="@drawable/bg_spinner_circle"
                android:gravity="center"
                android:text="recharge"
                android:textColor="@color/yellowcolor"
                android:textSize="@dimen/fourteenText_size"
        />
    </LinearLayout>
    <androidx.swiperefreshlayout.widget.SwipeRefreshLayout
            android:id="@+id/swipe_consumable_use_list"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_below="@+id/spinner_layout">

        <RelativeLayout
                android:layout_width="match_parent"
                android:layout_height="0dp"
                android:layout_weight="1">

            <androidx.recyclerview.widget.RecyclerView
                    android:id="@+id/consumable_recycleview"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:layout_marginStart="@dimen/margin_four"
                    android:layout_marginTop="@dimen/margin_four"
                    android:layout_marginEnd="@dimen/margin_four"
            >
            </androidx.recyclerview.widget.RecyclerView>
        </RelativeLayout>
    </androidx.swiperefreshlayout.widget.SwipeRefreshLayout>

</LinearLayout>