Project

General

Profile

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

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

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="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
    <TextView
48
        android:id="@+id/solverMoves"
49
        android:layout_below="@id/upperBar"
50
        android:layout_width="match_parent"
51
        android:layout_height="60dp"
52
        android:textAppearance="?android:attr/textAppearanceLarge"
53
        android:gravity="center_vertical|start"/>
54

    
55
    <LinearLayout
56
        android:id="@+id/lowerBar"
57
        android:layout_alignParentBottom="true"
58
        android:layout_width="match_parent"
59
        android:layout_height="80dp"
60
        android:orientation="horizontal"
61
        android:background="@android:color/transparent">
62

    
63
        <ImageButton
64
            android:id="@+id/solverLeft"
65
            android:background="@drawable/ui_left"
66
            android:layout_width="0dp"
67
            android:layout_height="match_parent"
68
            android:layout_weight="1.0"
69
            android:gravity="center_vertical|center"
70
            android:onClick="Left"
71
            android:layout_gravity="center_vertical"/>
72

    
73
        <TextView
74
            android:id="@+id/solverText"
75
            android:layout_width="0dp"
76
            android:layout_height="match_parent"
77
            android:layout_weight="5.0"
78
            android:gravity="center"
79
            android:textSize="40sp"/>
80

    
81
        <ImageButton
82
            android:id="@+id/solverRight"
83
            android:background="@drawable/ui_right"
84
            android:layout_width="0dp"
85
            android:layout_height="match_parent"
86
            android:layout_weight="1.0"
87
            android:gravity="center_vertical|center"
88
            android:onClick="Right"
89
            android:layout_gravity="center_vertical"/>
90
    </LinearLayout>
91

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