Project

General

Profile

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

magiccube / src / main / res / layout / main.xml @ 89950c64

1 0c52af30 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:layout_width="fill_parent"
9
        android:layout_height="wrap_content"
10
        android:gravity="center|fill_horizontal" >
11
12
         <Button
13 a47ee432 Leszek Koltunski
            android:id="@+id/rubikSettings"
14 0c52af30 Leszek Koltunski
            android:layout_width="wrap_content"
15
            android:layout_height="64dp"
16
            android:layout_weight="0.5"
17 a47ee432 Leszek Koltunski
            android:onClick="Settings"
18 0c52af30 Leszek Koltunski
            android:paddingLeft="5dp"
19
            android:paddingRight="5dp"
20 a47ee432 Leszek Koltunski
            android:text="@string/settings" />
21 0c52af30 Leszek Koltunski
22
        <ImageButton
23
            android:id="@+id/rubikSize2"
24
            android:layout_width="64dp"
25 f548942f Leszek Koltunski
            android:layout_height="64dp"
26 0c52af30 Leszek Koltunski
            android:onClick="setSize"
27
            android:paddingLeft="5dp"
28
            android:paddingRight="5dp"
29
            android:src="@drawable/button2"/>
30
31
        <ImageButton
32
            android:id="@+id/rubikSize3"
33
            android:layout_width="64dp"
34 f548942f Leszek Koltunski
            android:layout_height="64dp"
35 0c52af30 Leszek Koltunski
            android:onClick="setSize"
36
            android:paddingLeft="5dp"
37
            android:paddingRight="5dp"
38
            android:src="@drawable/button3"/>
39
40
        <ImageButton
41
            android:id="@+id/rubikSize4"
42
            android:layout_width="64dp"
43 f548942f Leszek Koltunski
            android:layout_height="64dp"
44 0c52af30 Leszek Koltunski
            android:onClick="setSize"
45
            android:paddingLeft="5dp"
46
            android:paddingRight="5dp"
47
            android:src="@drawable/button4"/>
48
49
        <Button
50 5560eea9 Leszek Koltunski
            android:id="@+id/rubikAbout"
51 0c52af30 Leszek Koltunski
            android:layout_width="wrap_content"
52
            android:layout_height="64dp"
53
            android:layout_weight="0.5"
54 5560eea9 Leszek Koltunski
            android:onClick="About"
55 0c52af30 Leszek Koltunski
            android:paddingLeft="5dp"
56
            android:paddingRight="5dp"
57 5560eea9 Leszek Koltunski
            android:text="@string/about" />
58 0c52af30 Leszek Koltunski
59
    </LinearLayout>
60
61 f548942f Leszek Koltunski
    <LinearLayout
62
        android:layout_width="fill_parent"
63
        android:layout_height="64dp"
64
        android:gravity="center|fill_horizontal" >
65
66
        <Button
67
            android:id="@+id/rubikScramble"
68
            android:layout_width="wrap_content"
69
            android:layout_height="fill_parent"
70
            android:layout_weight="0.5"
71
            android:onClick="Scramble"
72
            android:paddingLeft="5dp"
73
            android:paddingRight="5dp"
74
            android:text="@string/scramble" />
75
76
        <org.distorted.component.HorizontalNumberPicker
77
            android:id="@+id/rubikNumberPicker"
78
            android:layout_width="192dp"
79
            android:layout_height="fill_parent"/>
80
81
        <Button
82
            android:id="@+id/rubikSolve"
83
            android:layout_width="wrap_content"
84
            android:layout_height="fill_parent"
85
            android:layout_weight="0.5"
86 2ecf0c21 Leszek Koltunski
            android:onClick="Solve"
87 f548942f Leszek Koltunski
            android:paddingLeft="5dp"
88
            android:paddingRight="5dp"
89
            android:text="@string/solve" />
90
91
    </LinearLayout>
92
93 0c52af30 Leszek Koltunski
    <org.distorted.magic.RubikSurfaceView
94
        android:id="@+id/rubikSurfaceView"
95
        android:layout_width="fill_parent"
96
        android:layout_height="0dp"
97
        android:layout_weight="1" />
98
99
</LinearLayout>