1
|
<?xml version="1.0" encoding="utf-8"?>
|
2
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3
|
android:id="@+id/mainLayout"
|
4
|
android:layout_width="match_parent"
|
5
|
android:layout_height="match_parent"
|
6
|
android:orientation="vertical">
|
7
|
|
8
|
<org.distorted.config.ConfigSurfaceView
|
9
|
android:id="@+id/configSurfaceView"
|
10
|
android:layout_width="match_parent"
|
11
|
android:layout_height="0dp"
|
12
|
android:layout_weight="1.3"/>
|
13
|
|
14
|
<LinearLayout
|
15
|
android:id="@+id/configLayout"
|
16
|
android:layout_width="match_parent"
|
17
|
android:layout_height="0dp"
|
18
|
android:layout_weight="1.0"
|
19
|
android:background="@color/light_grey"
|
20
|
android:orientation="vertical" >
|
21
|
|
22
|
<LinearLayout
|
23
|
android:id="@+id/configLayoutName"
|
24
|
android:layout_width="fill_parent"
|
25
|
android:layout_height="0dp"
|
26
|
android:layout_weight="1"
|
27
|
android:paddingLeft="5dp"
|
28
|
android:paddingRight="5dp"
|
29
|
android:background="@color/grey"
|
30
|
android:orientation="horizontal">
|
31
|
|
32
|
<TextView
|
33
|
android:id="@+id/configDetailsName1"
|
34
|
android:layout_width="0dp"
|
35
|
android:layout_height="match_parent"
|
36
|
android:layout_weight="1.0"
|
37
|
android:gravity="center_vertical|start"
|
38
|
android:paddingStart="5dp"
|
39
|
android:textSize="26sp"
|
40
|
android:singleLine="true"
|
41
|
android:maxLines="1"
|
42
|
android:text="@string/config_name"/>
|
43
|
|
44
|
<TextView
|
45
|
android:id="@+id/configDetailsName2"
|
46
|
android:layout_width="0dp"
|
47
|
android:layout_height="match_parent"
|
48
|
android:layout_weight="2.5"
|
49
|
android:gravity="center_vertical|start"
|
50
|
android:paddingStart="5dp"
|
51
|
android:textSize="26sp"
|
52
|
android:singleLine="true"
|
53
|
android:maxLines="1"/>
|
54
|
|
55
|
</LinearLayout>
|
56
|
|
57
|
<LinearLayout
|
58
|
android:id="@+id/configLayoutAuthor"
|
59
|
android:layout_width="fill_parent"
|
60
|
android:layout_height="0dp"
|
61
|
android:layout_weight="1"
|
62
|
android:paddingLeft="5dp"
|
63
|
android:paddingRight="5dp"
|
64
|
android:background="@color/grey"
|
65
|
android:orientation="horizontal">
|
66
|
|
67
|
<TextView
|
68
|
android:id="@+id/configDetailsAuthor1"
|
69
|
android:layout_width="0dp"
|
70
|
android:layout_height="match_parent"
|
71
|
android:layout_weight="1.0"
|
72
|
android:gravity="center_vertical|start"
|
73
|
android:paddingStart="5dp"
|
74
|
android:textSize="26sp"
|
75
|
android:singleLine="true"
|
76
|
android:maxLines="1"
|
77
|
android:text="@string/config_author"/>
|
78
|
|
79
|
<TextView
|
80
|
android:id="@+id/configDetailsAuthor2"
|
81
|
android:layout_width="0dp"
|
82
|
android:layout_height="match_parent"
|
83
|
android:layout_weight="2.5"
|
84
|
android:gravity="center_vertical|start"
|
85
|
android:paddingStart="5dp"
|
86
|
android:textSize="26sp"
|
87
|
android:singleLine="true"
|
88
|
android:maxLines="1"/>
|
89
|
|
90
|
</LinearLayout>
|
91
|
|
92
|
<LinearLayout
|
93
|
android:id="@+id/configLayoutDifficulty"
|
94
|
android:layout_width="fill_parent"
|
95
|
android:layout_height="0dp"
|
96
|
android:layout_weight="1"
|
97
|
android:paddingLeft="5dp"
|
98
|
android:paddingRight="5dp"
|
99
|
android:background="@color/grey"
|
100
|
android:orientation="horizontal">
|
101
|
|
102
|
<TextView
|
103
|
android:id="@+id/configDifficultyTitle"
|
104
|
android:layout_width="0dp"
|
105
|
android:layout_height="match_parent"
|
106
|
android:layout_weight="1.0"
|
107
|
android:gravity="center_vertical|start"
|
108
|
android:paddingStart="5dp"
|
109
|
android:textSize="26sp"
|
110
|
android:singleLine="true"
|
111
|
android:maxLines="1"
|
112
|
android:text="@string/config_difficulty"/>
|
113
|
|
114
|
<LinearLayout
|
115
|
android:id="@+id/configDifficultyLayout"
|
116
|
android:layout_width="0dp"
|
117
|
android:layout_height="match_parent"
|
118
|
android:layout_weight="2.5"
|
119
|
android:paddingTop="20dp"
|
120
|
android:paddingBottom="20dp"
|
121
|
android:orientation="horizontal">
|
122
|
|
123
|
<ImageView
|
124
|
android:id="@+id/configDifficulty0"
|
125
|
android:layout_width="0dp"
|
126
|
android:layout_height="match_parent"
|
127
|
android:layout_weight="1"
|
128
|
android:gravity="center_vertical"
|
129
|
android:src="@drawable/ui_difficulty_unchecked"/>
|
130
|
|
131
|
<ImageView
|
132
|
android:id="@+id/configDifficulty1"
|
133
|
android:layout_width="0dp"
|
134
|
android:layout_height="match_parent"
|
135
|
android:layout_weight="1"
|
136
|
android:gravity="center_vertical"
|
137
|
android:src="@drawable/ui_difficulty_unchecked"/>
|
138
|
|
139
|
<ImageView
|
140
|
android:id="@+id/configDifficulty2"
|
141
|
android:layout_width="0dp"
|
142
|
android:layout_height="match_parent"
|
143
|
android:layout_weight="1"
|
144
|
android:gravity="center_vertical"
|
145
|
android:src="@drawable/ui_difficulty_unchecked"/>
|
146
|
|
147
|
<ImageView
|
148
|
android:id="@+id/configDifficulty3"
|
149
|
android:layout_width="0dp"
|
150
|
android:layout_height="match_parent"
|
151
|
android:layout_weight="1"
|
152
|
android:gravity="center_vertical"
|
153
|
android:src="@drawable/ui_difficulty_unchecked"/>
|
154
|
|
155
|
<ImageView
|
156
|
android:id="@+id/configDifficulty4"
|
157
|
android:layout_width="0dp"
|
158
|
android:layout_height="match_parent"
|
159
|
android:layout_weight="1"
|
160
|
android:gravity="center_vertical"
|
161
|
android:src="@drawable/ui_difficulty_unchecked"/>
|
162
|
|
163
|
</LinearLayout>
|
164
|
|
165
|
</LinearLayout>
|
166
|
|
167
|
<LinearLayout
|
168
|
android:id="@+id/configLayoutMesh"
|
169
|
android:layout_width="fill_parent"
|
170
|
android:layout_height="0dp"
|
171
|
android:layout_weight="1"
|
172
|
android:paddingLeft="5dp"
|
173
|
android:paddingRight="5dp"
|
174
|
android:background="@color/grey"
|
175
|
android:orientation="horizontal">
|
176
|
|
177
|
<TextView
|
178
|
android:id="@+id/configMeshTitle"
|
179
|
android:layout_width="0dp"
|
180
|
android:layout_height="match_parent"
|
181
|
android:layout_weight="1.0"
|
182
|
android:gravity="center_vertical|start"
|
183
|
android:paddingStart="5dp"
|
184
|
android:textSize="26sp"
|
185
|
android:singleLine="true"
|
186
|
android:maxLines="1"
|
187
|
android:text="@string/config_mesh"/>
|
188
|
|
189
|
<RadioGroup
|
190
|
android:id="@+id/meshRadioGroup"
|
191
|
android:layout_width="0dp"
|
192
|
android:layout_height="match_parent"
|
193
|
android:layout_weight="2.5"
|
194
|
android:orientation="horizontal"
|
195
|
android:checkedButton="@+id/meshNice"
|
196
|
android:background="@color/grey">
|
197
|
|
198
|
<RadioButton
|
199
|
android:id="@+id/meshSimple"
|
200
|
android:layout_width="0dp"
|
201
|
android:layout_height="match_parent"
|
202
|
android:layout_weight="1"
|
203
|
android:layout_marginBottom="0dp"
|
204
|
android:text="@string/config_mesh_simple"/>
|
205
|
|
206
|
<RadioButton
|
207
|
android:id="@+id/meshNice"
|
208
|
android:layout_width="0dp"
|
209
|
android:layout_height="match_parent"
|
210
|
android:layout_weight="1"
|
211
|
android:layout_marginBottom="0dp"
|
212
|
android:text="@string/config_mesh_nice"/>
|
213
|
|
214
|
</RadioGroup>
|
215
|
|
216
|
</LinearLayout>
|
217
|
|
218
|
</LinearLayout>
|
219
|
|
220
|
<LinearLayout
|
221
|
android:id="@+id/lowerBar"
|
222
|
android:layout_width="match_parent"
|
223
|
android:layout_height="100dp"
|
224
|
android:layout_gravity="end"
|
225
|
android:orientation="horizontal"
|
226
|
android:background="@color/light_grey">
|
227
|
</LinearLayout>
|
228
|
|
229
|
</LinearLayout>
|