Project

General

Profile

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

magiccube / src / main / res / layout / main.xml @ 63f8c96e

1
<?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
            android:id="@+id/rubikSettings"
14
            android:layout_width="wrap_content"
15
            android:layout_height="64dp"
16
            android:layout_weight="0.5"
17
            android:onClick="Settings"
18
            android:paddingLeft="5dp"
19
            android:paddingRight="5dp"
20
            android:text="@string/settings" />
21

    
22
        <ImageButton
23
            android:id="@+id/rubikSize2"
24
            android:layout_width="64dp"
25
            android:layout_height="64dp"
26
            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
            android:layout_height="64dp"
35
            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
            android:layout_height="64dp"
44
            android:onClick="setSize"
45
            android:paddingLeft="5dp"
46
            android:paddingRight="5dp"
47
            android:src="@drawable/button4"/>
48

    
49
        <Button
50
            android:id="@+id/rubikAbout"
51
            android:layout_width="wrap_content"
52
            android:layout_height="64dp"
53
            android:layout_weight="0.5"
54
            android:onClick="About"
55
            android:paddingLeft="5dp"
56
            android:paddingRight="5dp"
57
            android:text="@string/about" />
58

    
59
    </LinearLayout>
60

    
61
    <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
            android:onClick="Solve"
87
            android:paddingLeft="5dp"
88
            android:paddingRight="5dp"
89
            android:text="@string/solve" />
90

    
91
    </LinearLayout>
92

    
93
    <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>
(2-2/4)