1 |
40d02f47
|
leszek
|
<?xml version="1.0" encoding="utf-8"?>
|
2 |
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 |
|
|
android:id="@+id/relativeLayout"
|
4 |
|
|
android:layout_width="match_parent"
|
5 |
|
|
android:layout_height="match_parent" >
|
6 |
|
|
|
7 |
|
|
<org.distorted.phasedsolver.SolverSurfaceView
|
8 |
|
|
android:id="@+id/solverView"
|
9 |
|
|
android:layout_width="match_parent"
|
10 |
|
|
android:layout_height="match_parent"
|
11 |
|
|
android:layout_alignParentStart="true"
|
12 |
|
|
android:layout_alignParentTop="true"/>
|
13 |
|
|
|
14 |
|
|
<LinearLayout
|
15 |
|
|
android:id="@+id/upperBar"
|
16 |
|
|
android:layout_alignParentTop="true"
|
17 |
|
|
android:layout_width="match_parent"
|
18 |
|
|
android:layout_height="80dp"
|
19 |
|
|
android:gravity="center"
|
20 |
|
|
android:orientation="horizontal"
|
21 |
|
|
android:background="@android:color/transparent">
|
22 |
|
|
|
23 |
|
|
<Button
|
24 |
|
|
android:id="@+id/solverReset"
|
25 |
|
|
android:layout_width="0dp"
|
26 |
|
|
android:layout_height="match_parent"
|
27 |
|
|
android:layout_weight="1.0"
|
28 |
|
|
android:gravity="center_vertical|center"
|
29 |
|
|
android:text="@string/reset"
|
30 |
|
|
android:onClick="Reset"
|
31 |
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
32 |
|
|
android:layout_gravity="center_vertical"/>
|
33 |
|
|
|
34 |
|
|
<Button
|
35 |
|
|
android:id="@+id/solverSolve"
|
36 |
|
|
android:layout_width="0dp"
|
37 |
|
|
android:layout_height="match_parent"
|
38 |
|
|
android:layout_weight="1.0"
|
39 |
|
|
android:gravity="center_vertical|center"
|
40 |
|
|
android:text="@string/solve"
|
41 |
|
|
android:onClick="Solve"
|
42 |
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
43 |
|
|
android:layout_gravity="center_vertical"/>
|
44 |
|
|
|
45 |
|
|
</LinearLayout>
|
46 |
|
|
|
47 |
|
|
<LinearLayout
|
48 |
|
|
android:id="@+id/lowerBar"
|
49 |
|
|
android:layout_alignParentBottom="true"
|
50 |
|
|
android:layout_width="match_parent"
|
51 |
|
|
android:layout_height="80dp"
|
52 |
|
|
android:orientation="horizontal"
|
53 |
|
|
android:background="@android:color/transparent">
|
54 |
|
|
|
55 |
|
|
<ImageButton
|
56 |
|
|
android:id="@+id/solverLeft"
|
57 |
|
|
android:background="@drawable/ui_left"
|
58 |
|
|
android:layout_width="0dp"
|
59 |
|
|
android:layout_height="match_parent"
|
60 |
|
|
android:layout_weight="1.0"
|
61 |
|
|
android:gravity="center_vertical|center"
|
62 |
|
|
android:onClick="Left"
|
63 |
|
|
android:layout_gravity="center_vertical"/>
|
64 |
|
|
|
65 |
|
|
<TextView
|
66 |
|
|
android:id="@+id/solverText"
|
67 |
|
|
android:layout_width="0dp"
|
68 |
|
|
android:layout_height="match_parent"
|
69 |
a96b9267
|
leszek
|
android:layout_weight="5.0"
|
70 |
|
|
android:gravity="center"
|
71 |
|
|
android:textSize="40sp"/>
|
72 |
40d02f47
|
leszek
|
|
73 |
|
|
<ImageButton
|
74 |
|
|
android:id="@+id/solverRight"
|
75 |
|
|
android:background="@drawable/ui_right"
|
76 |
|
|
android:layout_width="0dp"
|
77 |
|
|
android:layout_height="match_parent"
|
78 |
|
|
android:layout_weight="1.0"
|
79 |
|
|
android:gravity="center_vertical|center"
|
80 |
|
|
android:onClick="Right"
|
81 |
|
|
android:layout_gravity="center_vertical"/>
|
82 |
|
|
</LinearLayout>
|
83 |
|
|
|
84 |
|
|
</RelativeLayout>
|