Project

General

Profile

Download (2.5 KB) Statistics
| Branch: | Revision:

examples / src / main / res / layout / rubiklayout.xml @ 8a40abf4

1 201376f3 Leszek Koltunski
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="vertical" >
6
7
    <LinearLayout
8
        android:id="@+id/linearLayout"
9
        android:layout_width="fill_parent"
10
        android:layout_height="wrap_content"
11
        android:gravity="center|fill_horizontal"
12
        android:paddingBottom="10dp"
13
        android:paddingTop="10dp" >
14
15 8a40abf4 Leszek Koltunski
        <ImageButton
16 201376f3 Leszek Koltunski
            android:id="@+id/rubikSize2"
17
            android:layout_width="wrap_content"
18
            android:layout_height="wrap_content"
19
            android:layout_marginLeft="2dp"
20
            android:layout_marginRight="2dp"
21
            android:layout_weight="0.17"
22
            android:onClick="setSize"
23
            android:paddingLeft="5dp"
24
            android:paddingRight="5dp"
25 8a40abf4 Leszek Koltunski
            android:src="@drawable/button_rubik2"/>
26 201376f3 Leszek Koltunski
27 8a40abf4 Leszek Koltunski
        <ImageButton
28 201376f3 Leszek Koltunski
            android:id="@+id/rubikSize3"
29
            android:layout_width="wrap_content"
30
            android:layout_height="wrap_content"
31
            android:layout_marginLeft="2dp"
32
            android:layout_marginRight="2dp"
33
            android:layout_weight="0.17"
34
            android:onClick="setSize"
35
            android:paddingLeft="5dp"
36
            android:paddingRight="5dp"
37 8a40abf4 Leszek Koltunski
            android:src="@drawable/button_rubik3"/>
38 201376f3 Leszek Koltunski
39 8a40abf4 Leszek Koltunski
        <ImageButton
40 201376f3 Leszek Koltunski
            android:id="@+id/rubikSize4"
41
            android:layout_width="54dp"
42
            android:layout_height="wrap_content"
43
            android:layout_marginLeft="2dp"
44
            android:layout_marginRight="2dp"
45
            android:layout_weight="0.17"
46
            android:onClick="setSize"
47
            android:paddingLeft="5dp"
48
            android:paddingRight="5dp"
49 8a40abf4 Leszek Koltunski
            android:src="@drawable/button_rubik4"/>
50 201376f3 Leszek Koltunski
51
        <Button
52
            android:id="@+id/rubikScramble"
53
            android:layout_width="wrap_content"
54
            android:layout_height="wrap_content"
55
            android:layout_marginLeft="2dp"
56
            android:layout_marginRight="2dp"
57
            android:layout_weight="0.17"
58
            android:onClick="Scramble"
59
            android:paddingLeft="5dp"
60
            android:paddingRight="5dp"
61 8a40abf4 Leszek Koltunski
            android:text="@string/scramble" />
62 201376f3 Leszek Koltunski
63
    </LinearLayout>
64
65
    <org.distorted.examples.rubik.RubikSurfaceView
66
        android:id="@+id/rubikSurfaceView"
67
        android:layout_width="fill_parent"
68
        android:layout_height="0dp"
69
        android:layout_weight="1" />
70
71
</LinearLayout>