Project

General

Profile

« Previous | Next » 

Revision a7012218

Added by Leszek Koltunski over 5 years ago

Add Unscramble Effects to the UI.

View differences:

src/main/res/layout/settings.xml
11 11
        android:paddingStart="15dp"
12 12
        android:paddingEnd="15dp"
13 13
        android:gravity="start|center"
14
        android:text="@string/disappear"
14
        android:text="@string/disappear_effect"
15 15
        android:textAppearance="?android:attr/textAppearanceMedium" />
16 16

  
17 17
    <LinearLayout
......
94 94
        android:paddingStart="15dp"
95 95
        android:paddingEnd="15dp"
96 96
        android:gravity="start|center"
97
        android:text="@string/appear"
97
        android:text="@string/appear_effect"
98 98
        android:textAppearance="?android:attr/textAppearanceMedium" />
99 99

  
100 100
    <LinearLayout
......
172 172
        </LinearLayout>
173 173
    </LinearLayout>
174 174

  
175
    <TextView
176
        android:layout_width="fill_parent"
177
        android:layout_height="48dp"
178
        android:paddingStart="15dp"
179
        android:paddingEnd="15dp"
180
        android:gravity="start|center"
181
        android:text="@string/unscramble_effect"
182
        android:textAppearance="?android:attr/textAppearanceMedium" />
183

  
184
    <LinearLayout
185
        android:layout_width="fill_parent"
186
        android:layout_height="fill_parent"
187
        android:layout_weight="0.5"
188
        android:gravity="center|fill_horizontal"
189
        android:layout_marginLeft="10dp"
190
        android:layout_marginRight="10dp"
191
        android:background="@color/grey"
192
        android:orientation="vertical">
193

  
194
        <LinearLayout
195
            android:layout_width="fill_parent"
196
            android:layout_height="36dp"
197
            android:gravity="center|fill_horizontal"
198
            android:orientation="horizontal">
199

  
200
            <TextView
201
                android:layout_weight="0.2"
202
                android:layout_width="0dp"
203
                android:layout_height="fill_parent"
204
                android:paddingStart="5dp"
205
                android:paddingEnd="5dp"
206
                android:gravity="start|center"
207
                android:text="@string/duration"
208
                android:textAppearance="?android:attr/textAppearanceSmall" />
209

  
210
            <TextView
211
                android:id="@+id/unscrambleDurationText"
212
                android:layout_weight="0.2"
213
                android:layout_width="0dp"
214
                android:layout_height="fill_parent"
215
                android:paddingStart="5dp"
216
                android:paddingEnd="5dp"
217
                android:gravity="end|center"
218
                android:textAppearance="?android:attr/textAppearanceSmall" />
219

  
220
            <SeekBar
221
                android:id="@+id/unscrambleDuration"
222
                android:layout_weight="0.6"
223
                android:layout_width="0dp"
224
                android:layout_height="fill_parent"
225
                android:paddingLeft="10dp"
226
                android:paddingRight="10dp" />
227

  
228
        </LinearLayout>
229

  
230
        <LinearLayout
231
            android:layout_width="fill_parent"
232
            android:layout_height="36dp"
233
            android:gravity="center|fill_horizontal"
234
            android:orientation="horizontal">
235

  
236
            <TextView
237
                android:layout_weight="0.4"
238
                android:layout_width="0dp"
239
                android:layout_height="fill_parent"
240
                android:paddingStart="5dp"
241
                android:paddingEnd="5dp"
242
                android:gravity="start|center"
243
                android:text="@string/type"
244
                android:textAppearance="?android:attr/textAppearanceSmall" />
245

  
246
            <Spinner
247
                android:id="@+id/unscrambleType"
248
                android:layout_weight="0.6"
249
                android:layout_width="0dp"
250
                android:layout_height="fill_parent"
251
                android:textAlignment="center"
252
                android:paddingLeft="10dp"
253
                android:paddingRight="10dp" />
254

  
255
        </LinearLayout>
256
    </LinearLayout>
257

  
175 258
</LinearLayout>

Also available in: Unified diff