Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 794c8f0

Browse files
author
Evgenii Kanivets
committed
Fix activity_add_record layout.
1 parent 5eae010 commit 794c8f0

File tree

1 file changed

+96
-90
lines changed

1 file changed

+96
-90
lines changed

app/src/main/res/layout/activity_add_record.xml

Lines changed: 96 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -7,106 +7,112 @@
77
android:background="@color/white"
88
android:orientation="vertical">
99

10-
<LinearLayout
11-
android:layout_width="fill_parent"
12-
android:layout_height="wrap_content"
13-
android:layout_margin="2dp"
14-
android:orientation="horizontal">
15-
16-
<TextView
17-
android:layout_width="match_parent"
18-
android:layout_height="match_parent"
19-
android:layout_weight="3"
20-
android:gravity="center_vertical|left"
21-
android:paddingLeft="10dp"
22-
android:text="@string/title" />
23-
24-
<EditText
25-
android:id="@+id/et_title"
26-
android:layout_width="match_parent"
27-
android:layout_height="match_parent"
28-
android:layout_marginRight="10dp"
29-
android:layout_weight="1"
30-
android:maxLines="1"
31-
android:singleLine="true" />
32-
</LinearLayout>
33-
3410
<LinearLayout
3511
android:layout_width="match_parent"
3612
android:layout_height="wrap_content"
37-
android:layout_margin="2dp"
38-
android:layout_weight="1"
39-
android:orientation="horizontal">
13+
android:orientation="vertical">
4014

41-
<TextView
42-
android:layout_width="match_parent"
43-
android:layout_height="match_parent"
44-
android:layout_weight="3"
45-
android:gravity="center_vertical|left"
46-
android:paddingLeft="10dp"
47-
android:text="@string/category" />
48-
49-
<EditText
50-
android:id="@+id/et_category"
15+
<LinearLayout
16+
android:layout_width="fill_parent"
17+
android:layout_height="wrap_content"
18+
android:layout_margin="2dp"
19+
android:orientation="horizontal">
20+
21+
<TextView
22+
android:layout_width="match_parent"
23+
android:layout_height="match_parent"
24+
android:layout_weight="3"
25+
android:gravity="center_vertical|left"
26+
android:paddingLeft="10dp"
27+
android:text="@string/title" />
28+
29+
<EditText
30+
android:id="@+id/et_title"
31+
android:layout_width="match_parent"
32+
android:layout_height="match_parent"
33+
android:layout_marginRight="10dp"
34+
android:layout_weight="1"
35+
android:maxLines="1"
36+
android:singleLine="true" />
37+
</LinearLayout>
38+
39+
<LinearLayout
5140
android:layout_width="match_parent"
52-
android:layout_height="match_parent"
53-
android:layout_marginRight="10dp"
41+
android:layout_height="wrap_content"
42+
android:layout_margin="2dp"
5443
android:layout_weight="1"
55-
android:maxLines="1"
56-
android:singleLine="true" />
57-
58-
</LinearLayout>
59-
60-
<LinearLayout
61-
android:layout_width="match_parent"
62-
android:layout_height="wrap_content"
63-
android:layout_gravity="center_horizontal"
64-
android:layout_margin="2dp"
65-
android:layout_weight="1"
66-
android:orientation="horizontal">
67-
68-
<TextView
69-
android:layout_width="match_parent"
70-
android:layout_height="match_parent"
71-
android:layout_weight="3"
72-
android:gravity="center_vertical|left"
73-
android:paddingLeft="10dp"
74-
android:text="@string/price" />
75-
76-
<EditText
77-
android:id="@+id/et_price"
44+
android:orientation="horizontal">
45+
46+
<TextView
47+
android:layout_width="match_parent"
48+
android:layout_height="match_parent"
49+
android:layout_weight="3"
50+
android:gravity="center_vertical|left"
51+
android:paddingLeft="10dp"
52+
android:text="@string/category" />
53+
54+
<EditText
55+
android:id="@+id/et_category"
56+
android:layout_width="match_parent"
57+
android:layout_height="match_parent"
58+
android:layout_marginRight="10dp"
59+
android:layout_weight="1"
60+
android:maxLines="1"
61+
android:singleLine="true" />
62+
63+
</LinearLayout>
64+
65+
<LinearLayout
7866
android:layout_width="match_parent"
7967
android:layout_height="wrap_content"
80-
android:layout_marginRight="10dp"
68+
android:layout_gravity="center_horizontal"
69+
android:layout_margin="2dp"
8170
android:layout_weight="1"
82-
android:inputType="numberSigned"
83-
android:maxLines="1"
84-
android:singleLine="true" />
85-
86-
</LinearLayout>
87-
88-
<LinearLayout
89-
android:layout_width="match_parent"
90-
android:layout_height="wrap_content"
91-
android:layout_gravity="center_horizontal"
92-
android:layout_margin="2dp"
93-
android:layout_weight="1"
94-
android:orientation="horizontal">
95-
96-
<TextView
97-
android:layout_width="match_parent"
98-
android:layout_height="match_parent"
99-
android:layout_weight="3"
100-
android:gravity="center_vertical|left"
101-
android:paddingLeft="10dp"
102-
android:text="@string/account" />
103-
104-
<Spinner
105-
android:id="@+id/spinner_account"
71+
android:orientation="horizontal">
72+
73+
<TextView
74+
android:layout_width="match_parent"
75+
android:layout_height="match_parent"
76+
android:layout_weight="3"
77+
android:gravity="center_vertical|left"
78+
android:paddingLeft="10dp"
79+
android:text="@string/price" />
80+
81+
<EditText
82+
android:id="@+id/et_price"
83+
android:layout_width="match_parent"
84+
android:layout_height="wrap_content"
85+
android:layout_marginRight="10dp"
86+
android:layout_weight="1"
87+
android:inputType="numberSigned"
88+
android:maxLines="1"
89+
android:singleLine="true" />
90+
91+
</LinearLayout>
92+
93+
<LinearLayout
10694
android:layout_width="match_parent"
10795
android:layout_height="wrap_content"
108-
android:layout_marginRight="10dp"
109-
android:layout_weight="1" />
110-
96+
android:layout_gravity="center_horizontal"
97+
android:layout_margin="2dp"
98+
android:layout_weight="1"
99+
android:orientation="horizontal">
100+
101+
<TextView
102+
android:layout_width="match_parent"
103+
android:layout_height="match_parent"
104+
android:layout_weight="3"
105+
android:gravity="center_vertical|left"
106+
android:paddingLeft="10dp"
107+
android:text="@string/account" />
108+
109+
<Spinner
110+
android:id="@+id/spinner_account"
111+
android:layout_width="match_parent"
112+
android:layout_height="wrap_content"
113+
android:layout_marginRight="10dp"
114+
android:layout_weight="1" />
115+
116+
</LinearLayout>
111117
</LinearLayout>
112118
</LinearLayout>

0 commit comments

Comments
 (0)