detail_view_amount.xml
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?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="match_parent"
    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="30dp"
        android:layout_height="match_parent"
        android:gravity="center"
        android:background="@drawable/btn_amount"
        android:text="-"/>
    <EditText
        android:id="@+id/etAmount"
        android:layout_width="60dp"
        android:layout_height="match_parent"
        android:background="@null"
        android:gravity="center"
        android:inputType="numberDecimal"
        android:text="1" />
    <Button
        android:id="@+id/btnIncrease"
        android:layout_width="30dp"
        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>