|
1 | | -<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" |
2 | | - xmlns:tools="http://schemas.android.com/tools" |
| 1 | +<!-- </android.support.v7.widget.GridLayout> --> |
| 2 | + |
| 3 | +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
3 | 4 | android:layout_width="match_parent" |
4 | 5 | android:layout_height="match_parent" |
5 | | - android:paddingBottom="@dimen/activity_vertical_margin" |
6 | | - android:paddingLeft="@dimen/activity_horizontal_margin" |
7 | | - android:paddingRight="@dimen/activity_horizontal_margin" |
8 | | - android:paddingTop="@dimen/activity_vertical_margin" |
9 | | - tools:context=".MainActivity" > |
10 | | - |
11 | | - <EditText |
12 | | - android:id="@+id/sceneInp" |
13 | | - android:layout_width="wrap_content" |
14 | | - android:layout_height="wrap_content" |
15 | | - android:layout_alignParentLeft="true" |
16 | | - android:layout_centerVertical="true" |
17 | | - android:ems="@integer/scene_text_lenght" |
18 | | - android:inputType="number" |
19 | | - android:text="@string/scene_default_value" |
20 | | - android:textSize="@dimen/scene_text_size" > |
21 | | - |
22 | | - <requestFocus /> |
23 | | - </EditText> |
24 | | - |
25 | | - <TextView |
26 | | - android:id="@+id/textView1" |
27 | | - android:layout_width="wrap_content" |
28 | | - android:layout_height="wrap_content" |
29 | | - android:layout_centerVertical="true" |
30 | | - android:layout_toRightOf="@+id/sceneInp" |
31 | | - android:text="@string/scene_delim" |
32 | | - android:textSize="@dimen/scene_text_size" /> |
33 | | - |
34 | | - <EditText |
35 | | - android:id="@+id/shotInp" |
36 | | - android:layout_width="wrap_content" |
37 | | - android:layout_height="wrap_content" |
38 | | - android:layout_centerVertical="true" |
39 | | - android:layout_toRightOf="@+id/textView1" |
40 | | - android:ems="@integer/scene_text_lenght" |
41 | | - android:inputType="number" |
42 | | - android:text="@string/scene_default_value" |
43 | | - android:textSize="@dimen/scene_text_size" /> |
| 6 | + android:orientation="horizontal" > |
44 | 7 |
|
45 | | - <TextView |
46 | | - android:id="@+id/TextView01" |
| 8 | + <org.audiosync.NumberChooser |
| 9 | + android:id="@+id/sceneChooser" |
47 | 10 | android:layout_width="wrap_content" |
48 | | - android:layout_height="wrap_content" |
49 | | - android:layout_centerVertical="true" |
50 | | - android:layout_toRightOf="@+id/shotInp" |
51 | | - android:text="@string/scene_delim" |
52 | | - android:textSize="@dimen/scene_text_size" /> |
| 11 | + android:layout_height="fill_parent" |
| 12 | + android:layout_weight="1" > |
| 13 | + </org.audiosync.NumberChooser> |
53 | 14 |
|
54 | | - <EditText |
55 | | - android:id="@+id/takeInp" |
| 15 | + <org.audiosync.NumberChooser |
| 16 | + android:id="@+id/shotChooser" |
56 | 17 | android:layout_width="wrap_content" |
57 | | - android:layout_height="wrap_content" |
58 | | - android:layout_centerVertical="true" |
59 | | - android:layout_toRightOf="@+id/TextView01" |
60 | | - android:ems="@integer/scene_text_lenght" |
61 | | - android:inputType="number" |
62 | | - android:text="@string/scene_default_value" |
63 | | - android:textSize="@dimen/scene_text_size" /> |
| 18 | + android:layout_height="fill_parent" |
| 19 | + android:layout_weight="1" > |
| 20 | + </org.audiosync.NumberChooser> |
64 | 21 |
|
65 | | - <Button |
66 | | - android:id="@+id/nextButton" |
| 22 | + <org.audiosync.NumberChooser |
| 23 | + android:id="@+id/takeChooser" |
67 | 24 | android:layout_width="wrap_content" |
68 | | - android:layout_height="wrap_content" |
69 | | - android:layout_alignLeft="@+id/sceneInp" |
70 | | - android:layout_alignParentTop="true" |
71 | | - android:layout_alignRight="@+id/takeInp" |
72 | | - android:text="@string/next_take" /> |
| 25 | + android:layout_height="fill_parent" |
| 26 | + android:layout_weight="1" > |
| 27 | + </org.audiosync.NumberChooser> |
73 | 28 |
|
74 | 29 | <Button |
75 | 30 | android:id="@+id/goButton" |
76 | 31 | android:layout_width="wrap_content" |
77 | | - android:layout_height="wrap_content" |
78 | | - android:layout_alignParentBottom="true" |
79 | | - android:layout_alignParentRight="true" |
80 | | - android:layout_alignTop="@+id/nextButton" |
81 | | - android:layout_toRightOf="@+id/nextButton" |
82 | | - android:text="@string/go" /> |
83 | | - |
84 | | - <Button |
85 | | - android:id="@+id/clearTakeBtn" |
86 | | - android:layout_width="wrap_content" |
87 | | - android:layout_height="wrap_content" |
88 | | - android:layout_alignLeft="@+id/sceneInp" |
89 | | - android:layout_alignParentBottom="true" |
90 | | - android:layout_alignRight="@+id/takeInp" |
91 | | - android:text="@string/clear_take" /> |
92 | | - |
93 | | -</RelativeLayout> |
| 32 | + android:layout_height="fill_parent" |
| 33 | + android:layout_weight="0.44" |
| 34 | + android:text="@string/go" |
| 35 | + android:textSize="@dimen/scene_text_size" /> |
| 36 | + |
| 37 | +</LinearLayout> |
0 commit comments