view_amount.xml
1.98 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
50
51
52
53
54
55
56
57
58
59
60
61
62
<?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>