Project

General

Profile

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

phasedsolver / src / main / res / layout / mainlayout.xml @ 46e6b402

1
<?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="60dp"
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/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
        <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
    <TextView
59
        android:id="@+id/solverMoves"
60
        android:layout_below="@id/upperBar"
61
        android:layout_width="match_parent"
62
        android:layout_height="50dp"
63
        android:background="@color/white"
64
        android:textColor="@color/black"
65
        android:layout_marginStart="4dp"
66
        android:layout_marginEnd="4dp"
67
        android:textAppearance="?android:attr/textAppearanceLarge"
68
        android:gravity="center_vertical|start"/>
69

    
70
    <LinearLayout
71
        android:id="@+id/phaseBar"
72
        android:layout_above="@id/lowerBar"
73
        android:layout_width="match_parent"
74
        android:layout_height="70dp"
75
        android:orientation="horizontal"
76
        android:background="@android:color/transparent">
77

    
78
        <ImageButton
79
            android:id="@+id/solverPhaseLeft"
80
            android:background="@drawable/ui_left"
81
            android:layout_width="0dp"
82
            android:layout_height="match_parent"
83
            android:layout_weight="1.0"
84
            android:gravity="center_vertical|center"
85
            android:onClick="PhaseLeft"
86
            android:layout_gravity="center_vertical"/>
87

    
88
        <TextView
89
            android:id="@+id/solverPhaseName"
90
            android:layout_width="0dp"
91
            android:layout_height="match_parent"
92
            android:layout_weight="5"
93
            android:gravity="center"
94
            android:textSize="20sp"/>
95

    
96
        <ImageButton
97
            android:id="@+id/solverPhaseRight"
98
            android:background="@drawable/ui_right"
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="PhaseRight"
104
            android:layout_gravity="center_vertical"/>
105

    
106
    </LinearLayout>
107

    
108
    <LinearLayout
109
        android:id="@+id/lowerBar"
110
        android:layout_alignParentBottom="true"
111
        android:layout_width="match_parent"
112
        android:layout_height="70dp"
113
        android:orientation="horizontal"
114
        android:background="@android:color/transparent">
115

    
116
        <ImageButton
117
            android:id="@+id/solverLeft"
118
            android:background="@drawable/ui_left"
119
            android:layout_width="0dp"
120
            android:layout_height="match_parent"
121
            android:layout_weight="1.0"
122
            android:gravity="center_vertical|center"
123
            android:onClick="Left"
124
            android:layout_gravity="center_vertical"/>
125

    
126
        <TextView
127
            android:id="@+id/solverText"
128
            android:layout_width="0dp"
129
            android:layout_height="match_parent"
130
            android:layout_weight="5"
131
            android:gravity="center"
132
            android:textSize="20sp"/>
133

    
134
        <ImageButton
135
            android:id="@+id/solverRight"
136
            android:background="@drawable/ui_right"
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="Right"
142
            android:layout_gravity="center_vertical"/>
143

    
144
    </LinearLayout>
145

    
146
</RelativeLayout>
    (1-1/1)