view_amount.xml 1.98 KB
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="40dp"
    android:background="@color/white">

    <TextView
        android:id="@+id/lineName"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="10dp"
        android:layout_gravity="left|center_vertical"
        android:textSize="@dimen/smallFont"
        android:textColor="@color/black"/>

    <LinearLayout
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_gravity="right|center_vertical"
        android:focusable="true"
        android:divider="@drawable/divider"
        android:showDividers="middle">



        <View
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="#eff3ff"/>

        <Button
            android:id="@+id/btnDecrease"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:gravity="center"
            android:background="@drawable/btn_amount"
            android:text="-"/>

        <EditText
            android:id="@+id/etAmount"
            android:layout_width="100dp"
            android:layout_height="match_parent"
            android:background="@null"
            android:inputType="number"
            android:gravity="center"
            android:text="1"/>

        <Button
            android:id="@+id/btnIncrease"
            android:layout_width="50dp"
            android:layout_height="match_parent"
            android:gravity="center"
            android:background="@drawable/btn_amount"
            android:text="+"/>

        <View
            android:layout_width="1dp"
            android:layout_height="match_parent"
            android:background="#eff3ff"/>
    </LinearLayout>
</FrameLayout>