Project

General

Profile

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

phasedsolver / src / main / res / layout / mainlayout.xml @ 41aff64e

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