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 |
eb0369a7
|
leszek
|
<TextView
|
48 |
|
|
android:id="@+id/solverMoves"
|
49 |
|
|
android:layout_below="@id/upperBar"
|
50 |
|
|
android:layout_width="match_parent"
|
51 |
4d2a5fd3
|
leszek
|
android:layout_height="50dp"
|
52 |
|
|
android:background="@color/white"
|
53 |
|
|
android:textColor="@color/black"
|
54 |
|
|
android:layout_marginStart="4dp"
|
55 |
|
|
android:layout_marginEnd="4dp"
|
56 |
eb0369a7
|
leszek
|
android:textAppearance="?android:attr/textAppearanceLarge"
|
57 |
|
|
android:gravity="center_vertical|start"/>
|
58 |
|
|
|
59 |
78843d15
|
leszek
|
<LinearLayout
|
60 |
|
|
android:id="@+id/phaseBar"
|
61 |
|
|
android:layout_above="@id/lowerBar"
|
62 |
|
|
android:layout_width="match_parent"
|
63 |
|
|
android:layout_height="70dp"
|
64 |
|
|
android:orientation="horizontal"
|
65 |
|
|
android:background="@android:color/transparent">
|
66 |
|
|
|
67 |
|
|
<ImageButton
|
68 |
|
|
android:id="@+id/solverPhaseLeft"
|
69 |
|
|
android:background="@drawable/ui_left"
|
70 |
|
|
android:layout_width="0dp"
|
71 |
|
|
android:layout_height="match_parent"
|
72 |
|
|
android:layout_weight="1.0"
|
73 |
|
|
android:gravity="center_vertical|center"
|
74 |
|
|
android:onClick="PhaseLeft"
|
75 |
|
|
android:layout_gravity="center_vertical"/>
|
76 |
|
|
|
77 |
|
|
<TextView
|
78 |
|
|
android:id="@+id/solverPhaseName"
|
79 |
|
|
android:layout_width="0dp"
|
80 |
|
|
android:layout_height="match_parent"
|
81 |
|
|
android:layout_weight="5"
|
82 |
|
|
android:gravity="center"
|
83 |
|
|
android:textSize="20sp"/>
|
84 |
|
|
|
85 |
|
|
<ImageButton
|
86 |
|
|
android:id="@+id/solverPhaseRight"
|
87 |
|
|
android:background="@drawable/ui_right"
|
88 |
|
|
android:layout_width="0dp"
|
89 |
|
|
android:layout_height="match_parent"
|
90 |
|
|
android:layout_weight="1.0"
|
91 |
|
|
android:gravity="center_vertical|center"
|
92 |
|
|
android:onClick="PhaseRight"
|
93 |
|
|
android:layout_gravity="center_vertical"/>
|
94 |
|
|
|
95 |
|
|
</LinearLayout>
|
96 |
|
|
|
97 |
40d02f47
|
leszek
|
<LinearLayout
|
98 |
|
|
android:id="@+id/lowerBar"
|
99 |
|
|
android:layout_alignParentBottom="true"
|
100 |
|
|
android:layout_width="match_parent"
|
101 |
78843d15
|
leszek
|
android:layout_height="70dp"
|
102 |
40d02f47
|
leszek
|
android:orientation="horizontal"
|
103 |
|
|
android:background="@android:color/transparent">
|
104 |
|
|
|
105 |
|
|
<ImageButton
|
106 |
|
|
android:id="@+id/solverLeft"
|
107 |
|
|
android:background="@drawable/ui_left"
|
108 |
|
|
android:layout_width="0dp"
|
109 |
|
|
android:layout_height="match_parent"
|
110 |
|
|
android:layout_weight="1.0"
|
111 |
|
|
android:gravity="center_vertical|center"
|
112 |
|
|
android:onClick="Left"
|
113 |
|
|
android:layout_gravity="center_vertical"/>
|
114 |
|
|
|
115 |
78843d15
|
leszek
|
<TextView
|
116 |
|
|
android:id="@+id/solverText"
|
117 |
40d02f47
|
leszek
|
android:layout_width="0dp"
|
118 |
|
|
android:layout_height="match_parent"
|
119 |
78843d15
|
leszek
|
android:layout_weight="5"
|
120 |
|
|
android:gravity="center"
|
121 |
|
|
android:textSize="20sp"/>
|
122 |
40d02f47
|
leszek
|
|
123 |
|
|
<ImageButton
|
124 |
|
|
android:id="@+id/solverRight"
|
125 |
|
|
android:background="@drawable/ui_right"
|
126 |
|
|
android:layout_width="0dp"
|
127 |
|
|
android:layout_height="match_parent"
|
128 |
|
|
android:layout_weight="1.0"
|
129 |
|
|
android:gravity="center_vertical|center"
|
130 |
|
|
android:onClick="Right"
|
131 |
|
|
android:layout_gravity="center_vertical"/>
|
132 |
78843d15
|
leszek
|
|
133 |
40d02f47
|
leszek
|
</LinearLayout>
|
134 |
|
|
|
135 |
|
|
</RelativeLayout>
|