Project

General

Profile

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

examples / src / main / res / layout / rubiklayout.xml @ 201376f3

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: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
        <Button
16
            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
            android:text="@string/swirl" />
26

    
27
        <Button
28
            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
            android:text="@string/bubble" />
38

    
39
        <Button
40
            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
            android:text="@string/sink" />
50

    
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
            android:text="@string/alpha" />
62

    
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>
(35-35/42)