Revision 6e18bd32
Added by Leszek Koltunski about 5 years ago
src/main/res/layout/rubiklayout.xml | ||
---|---|---|
4 | 4 |
android:layout_height="fill_parent" |
5 | 5 |
android:orientation="vertical" > |
6 | 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 |
|
|
13 |
<Button |
|
14 |
android:id="@+id/rubikCredits" |
|
15 |
android:layout_width="wrap_content" |
|
16 |
android:layout_height="64dp" |
|
17 |
android:layout_weight="0.5" |
|
18 |
android:onClick="Credits" |
|
19 |
android:paddingLeft="5dp" |
|
20 |
android:paddingRight="5dp" |
|
21 |
android:text="@string/credits" /> |
|
22 |
|
|
23 |
<ImageButton |
|
24 |
android:id="@+id/rubikSize2" |
|
25 |
android:layout_width="64dp" |
|
26 |
android:layout_height="wrap_content" |
|
27 |
android:onClick="setSize" |
|
28 |
android:paddingLeft="5dp" |
|
29 |
android:paddingRight="5dp" |
|
30 |
android:src="@raw/button_rubik2"/> |
|
31 |
|
|
32 |
<ImageButton |
|
33 |
android:id="@+id/rubikSize3" |
|
34 |
android:layout_width="64dp" |
|
35 |
android:layout_height="wrap_content" |
|
36 |
android:onClick="setSize" |
|
37 |
android:paddingLeft="5dp" |
|
38 |
android:paddingRight="5dp" |
|
39 |
android:src="@raw/button_rubik3"/> |
|
40 |
|
|
41 |
<ImageButton |
|
42 |
android:id="@+id/rubikSize4" |
|
43 |
android:layout_width="64dp" |
|
44 |
android:layout_height="wrap_content" |
|
45 |
android:onClick="setSize" |
|
46 |
android:paddingLeft="5dp" |
|
47 |
android:paddingRight="5dp" |
|
48 |
android:src="@raw/button_rubik4"/> |
|
49 |
|
|
50 |
<Button |
|
51 |
android:id="@+id/rubikScramble" |
|
52 |
android:layout_width="wrap_content" |
|
53 |
android:layout_height="64dp" |
|
54 |
android:layout_weight="0.5" |
|
55 |
android:onClick="Scramble" |
|
56 |
android:paddingLeft="5dp" |
|
57 |
android:paddingRight="5dp" |
|
58 |
android:text="@string/scramble" /> |
|
59 |
|
|
60 |
</LinearLayout> |
|
61 |
|
|
62 | 7 |
<org.distorted.examples.rubik.RubikSurfaceView |
63 | 8 |
android:id="@+id/rubikSurfaceView" |
64 | 9 |
android:layout_width="fill_parent" |
65 | 10 |
android:layout_height="0dp" |
66 | 11 |
android:layout_weight="1" /> |
67 | 12 |
|
13 |
<TextView |
|
14 |
android:id="@+id/rubikText" |
|
15 |
android:layout_width="fill_parent" |
|
16 |
android:layout_height="48dp" |
|
17 |
android:gravity="center_vertical|center" |
|
18 |
android:textAppearance="?android:attr/textAppearanceMedium" /> |
|
19 |
|
|
68 | 20 |
</LinearLayout> |
Also available in: Unified diff
Turn the Rubik app into a MemoryTest.