Project

General

Profile

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

phasedsolver / src / main / res / layout / mainlayout.xml @ 64f58d2b

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 46e6b402 leszek
        android:layout_height="60dp"
19 40d02f47 leszek
        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 7c1b6441 leszek
        <Button
35
            android:id="@+id/solverScramble"
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/scramble"
41
            android:onClick="Scramble"
42
            android:textAppearance="?android:attr/textAppearanceMedium"
43
            android:layout_gravity="center_vertical"/>
44
45 40d02f47 leszek
        <Button
46
            android:id="@+id/solverSolve"
47
            android:layout_width="0dp"
48
            android:layout_height="match_parent"
49
            android:layout_weight="1.0"
50
            android:gravity="center_vertical|center"
51
            android:text="@string/solve"
52
            android:onClick="Solve"
53
            android:textAppearance="?android:attr/textAppearanceMedium"
54
            android:layout_gravity="center_vertical"/>
55
56
    </LinearLayout>
57
58 be803eb3 leszek
    <LinearLayout
59
        android:id="@+id/middleBar"
60 eb0369a7 leszek
        android:layout_below="@id/upperBar"
61
        android:layout_width="match_parent"
62 4d2a5fd3 leszek
        android:layout_height="50dp"
63 be803eb3 leszek
        android:gravity="center"
64
        android:orientation="horizontal"
65
        android:background="@android:color/transparent">
66
67
        <TextView
68
            android:id="@+id/solverMoves"
69
            android:layout_width="0dp"
70
            android:layout_height="match_parent"
71
            android:layout_weight="2"
72
            android:background="@color/white"
73
            android:textColor="@color/black"
74
            android:layout_marginStart="4dp"
75
            android:layout_marginEnd="4dp"
76
            android:layout_marginTop="3dp"
77
            android:layout_marginBottom="5dp"
78
            android:textAppearance="?android:attr/textAppearanceLarge"
79
            android:gravity="center_vertical|start"/>
80
        <Spinner
81
            android:id="@+id/solverSpinner"
82
            android:layout_width="0dp"
83
            android:layout_height="match_parent"
84
            android:layout_weight="1"/>
85
86
    </LinearLayout>
87 eb0369a7 leszek
88 78843d15 leszek
    <LinearLayout
89
        android:id="@+id/phaseBar"
90
        android:layout_above="@id/lowerBar"
91
        android:layout_width="match_parent"
92
        android:layout_height="70dp"
93
        android:orientation="horizontal"
94
        android:background="@android:color/transparent">
95
96
        <ImageButton
97
            android:id="@+id/solverPhaseLeft"
98
            android:background="@drawable/ui_left"
99
            android:layout_width="0dp"
100
            android:layout_height="match_parent"
101
            android:layout_weight="1.0"
102
            android:gravity="center_vertical|center"
103
            android:onClick="PhaseLeft"
104
            android:layout_gravity="center_vertical"/>
105
106
        <TextView
107
            android:id="@+id/solverPhaseName"
108
            android:layout_width="0dp"
109
            android:layout_height="match_parent"
110
            android:layout_weight="5"
111
            android:gravity="center"
112
            android:textSize="20sp"/>
113
114
        <ImageButton
115
            android:id="@+id/solverPhaseRight"
116
            android:background="@drawable/ui_right"
117
            android:layout_width="0dp"
118
            android:layout_height="match_parent"
119
            android:layout_weight="1.0"
120
            android:gravity="center_vertical|center"
121
            android:onClick="PhaseRight"
122
            android:layout_gravity="center_vertical"/>
123
124
    </LinearLayout>
125
126 40d02f47 leszek
    <LinearLayout
127
        android:id="@+id/lowerBar"
128
        android:layout_alignParentBottom="true"
129
        android:layout_width="match_parent"
130 78843d15 leszek
        android:layout_height="70dp"
131 40d02f47 leszek
        android:orientation="horizontal"
132
        android:background="@android:color/transparent">
133
134
        <ImageButton
135
            android:id="@+id/solverLeft"
136
            android:background="@drawable/ui_left"
137
            android:layout_width="0dp"
138
            android:layout_height="match_parent"
139
            android:layout_weight="1.0"
140
            android:gravity="center_vertical|center"
141
            android:onClick="Left"
142
            android:layout_gravity="center_vertical"/>
143
144 78843d15 leszek
        <TextView
145
            android:id="@+id/solverText"
146 40d02f47 leszek
            android:layout_width="0dp"
147
            android:layout_height="match_parent"
148 78843d15 leszek
            android:layout_weight="5"
149
            android:gravity="center"
150
            android:textSize="20sp"/>
151 40d02f47 leszek
152
        <ImageButton
153
            android:id="@+id/solverRight"
154
            android:background="@drawable/ui_right"
155
            android:layout_width="0dp"
156
            android:layout_height="match_parent"
157
            android:layout_weight="1.0"
158
            android:gravity="center_vertical|center"
159
            android:onClick="Right"
160
            android:layout_gravity="center_vertical"/>
161 78843d15 leszek
162 40d02f47 leszek
    </LinearLayout>
163
164
</RelativeLayout>