detail_view_amount.xml 1.47 KB
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:background="@color/white"
    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:descendantFocusability="afterDescendants"
        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>