Project

General

Profile

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

phasedsolver / src / main / res / layout / mainlayout.xml @ d78e2f1d

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