Project

General

Profile

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

magiccube / src / main / res / layout / main.xml @ fdec60a3

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