Project

General

Profile

Download (8.28 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / res / layout / config.xml @ 453ee65a

1 1237d25d Leszek Koltunski
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
3 97a4ae23 Leszek Koltunski
    android:id="@+id/mainLayout"
4 1237d25d Leszek Koltunski
    android:layout_width="match_parent"
5
    android:layout_height="match_parent"
6
    android:orientation="vertical">
7
8 97a4ae23 Leszek Koltunski
    <org.distorted.config.ConfigSurfaceView
9
        android:id="@+id/configSurfaceView"
10 1237d25d Leszek Koltunski
        android:layout_width="match_parent"
11 97a4ae23 Leszek Koltunski
        android:layout_height="0dp"
12 21efc7d7 Leszek Koltunski
        android:layout_weight="1.3"/>
13 1237d25d Leszek Koltunski
14 8bf8fe70 Leszek Koltunski
    <LinearLayout
15 74d088c3 Leszek Koltunski
        android:id="@+id/configLayout"
16 1237d25d Leszek Koltunski
        android:layout_width="match_parent"
17 97a4ae23 Leszek Koltunski
        android:layout_height="0dp"
18 74d088c3 Leszek Koltunski
        android:layout_weight="1.0"
19
        android:background="@color/light_grey"
20
        android:orientation="vertical" >
21 21efc7d7 Leszek Koltunski
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 e8e0d66a Leszek Koltunski
                android:layout_weight="2.1"
49 21efc7d7 Leszek Koltunski
                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 e8e0d66a Leszek Koltunski
                android:layout_weight="2.1"
84 21efc7d7 Leszek Koltunski
                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 e8e0d66a Leszek Koltunski
                android:gravity="start"
120 21efc7d7 Leszek Koltunski
                android:paddingTop="20dp"
121
                android:paddingBottom="20dp"
122
                android:orientation="horizontal">
123
124
                <ImageView
125
                    android:id="@+id/configDifficulty0"
126
                    android:layout_width="0dp"
127
                    android:layout_height="match_parent"
128
                    android:layout_weight="1"
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:src="@drawable/ui_difficulty_unchecked"/>
137
138
                <ImageView
139
                    android:id="@+id/configDifficulty2"
140
                    android:layout_width="0dp"
141
                    android:layout_height="match_parent"
142
                    android:layout_weight="1"
143
                    android:src="@drawable/ui_difficulty_unchecked"/>
144
145
                <ImageView
146
                    android:id="@+id/configDifficulty3"
147
                    android:layout_width="0dp"
148
                    android:layout_height="match_parent"
149
                    android:layout_weight="1"
150
                    android:src="@drawable/ui_difficulty_unchecked"/>
151
152
                <ImageView
153
                    android:id="@+id/configDifficulty4"
154
                    android:layout_width="0dp"
155
                    android:layout_height="match_parent"
156
                    android:layout_weight="1"
157
                    android:src="@drawable/ui_difficulty_unchecked"/>
158
159
            </LinearLayout>
160
161
        </LinearLayout>
162
163
         <LinearLayout
164
            android:id="@+id/configLayoutMesh"
165
            android:layout_width="fill_parent"
166
            android:layout_height="0dp"
167
            android:layout_weight="1"
168
            android:paddingLeft="5dp"
169
            android:paddingRight="5dp"
170
            android:background="@color/grey"
171
            android:orientation="horizontal">
172
173
            <TextView
174
                android:id="@+id/configMeshTitle"
175
                android:layout_width="0dp"
176
                android:layout_height="match_parent"
177
                android:layout_weight="1.0"
178
                android:gravity="center_vertical|start"
179
                android:paddingStart="5dp"
180
                android:textSize="26sp"
181
                android:singleLine="true"
182
                android:maxLines="1"
183
                android:text="@string/config_mesh"/>
184
185
            <RadioGroup
186
                android:id="@+id/meshRadioGroup"
187
                android:layout_width="0dp"
188
                android:layout_height="match_parent"
189 e8e0d66a Leszek Koltunski
                android:layout_weight="2.1"
190 21efc7d7 Leszek Koltunski
                android:orientation="horizontal"
191
                android:checkedButton="@+id/meshNice"
192
                android:background="@color/grey">
193
194
                <RadioButton
195
                    android:id="@+id/meshSimple"
196
                    android:layout_width="0dp"
197
                    android:layout_height="match_parent"
198
                    android:layout_weight="1"
199 e8e0d66a Leszek Koltunski
                    android:buttonTint="@color/white"
200 4d191189 Leszek Koltunski
                    android:text="@string/config_mesh_fast"/>
201 21efc7d7 Leszek Koltunski
202
                <RadioButton
203
                    android:id="@+id/meshNice"
204
                    android:layout_width="0dp"
205
                    android:layout_height="match_parent"
206
                    android:layout_weight="1"
207 e8e0d66a Leszek Koltunski
                    android:buttonTint="@color/white"
208 21efc7d7 Leszek Koltunski
                    android:text="@string/config_mesh_nice"/>
209
210
            </RadioGroup>
211
212
        </LinearLayout>
213
214 8bf8fe70 Leszek Koltunski
    </LinearLayout>
215 1237d25d Leszek Koltunski
216
    <LinearLayout
217
        android:id="@+id/lowerBar"
218
        android:layout_width="match_parent"
219
        android:layout_height="100dp"
220 97a4ae23 Leszek Koltunski
        android:layout_gravity="end"
221 1237d25d Leszek Koltunski
        android:orientation="horizontal"
222 97a4ae23 Leszek Koltunski
        android:background="@color/light_grey">
223 1237d25d Leszek Koltunski
    </LinearLayout>
224
225
</LinearLayout>