Project

General

Profile

Download (6.08 KB) Statistics
| Branch: | Tag: | Revision:

magiccube / src / main / res / layout / main.xml @ c820515c

1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout  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
    android:weightSum="1.0"
7
    android:orientation="vertical">
8

    
9
    <LinearLayout
10
        android:id="@+id/hiddenBar"
11
        android:layout_width="match_parent"
12
        android:layout_height="0dp"
13
        android:layout_weight="0.00"
14
        android:gravity="center"
15
        android:orientation="horizontal"
16
        android:background="@color/dark_grey">
17
    </LinearLayout>
18

    
19
    <LinearLayout
20
        android:id="@+id/upperBar"
21
        android:layout_width="match_parent"
22
        android:layout_height="0dp"
23
        android:layout_weight="0.08"
24
        android:gravity="center"
25
        android:weightSum="1.0"
26
        android:orientation="horizontal"
27
        android:background="@color/dark_grey">
28

    
29
        <LinearLayout
30
            android:layout_width="0dp"
31
            android:layout_height="match_parent"
32
            android:layout_weight="0.2"
33
            android:orientation="horizontal"
34
            android:gravity="center"
35
            android:background="@android:color/transparent">
36

    
37
            <ImageButton
38
                android:id="@+id/buttonScores"
39
                android:adjustViewBounds="true"
40
                android:scaleType="fitCenter"
41
                android:layout_width="wrap_content"
42
                android:layout_height="match_parent"
43
                android:onClick="onScores"
44
                android:background="@android:color/transparent"
45
                android:src="@drawable/ui_podium"/>
46

    
47
        </LinearLayout>
48

    
49
        <LinearLayout
50
            android:layout_width="0dp"
51
            android:layout_height="match_parent"
52
            android:layout_weight="0.6"
53
            android:orientation="horizontal"
54
            android:gravity="center"
55
            android:background="@android:color/transparent">
56

    
57
            <ImageButton
58
                android:id="@+id/buttonSettings"
59
                android:adjustViewBounds="true"
60
                android:scaleType="fitCenter"
61
                android:layout_width="wrap_content"
62
                android:layout_height="match_parent"
63
                android:onClick="onSettings"
64
                android:background="@android:color/transparent"
65
                android:src="@drawable/ui_settings"/>
66

    
67
        </LinearLayout>
68

    
69
        <LinearLayout
70
            android:layout_width="0dp"
71
            android:layout_height="match_parent"
72
            android:layout_weight="0.2"
73
            android:orientation="horizontal"
74
            android:gravity="center"
75
            android:background="@android:color/transparent">
76

    
77
            <ImageButton
78
                android:id="@+id/buttonBandage"
79
                android:adjustViewBounds="true"
80
                android:scaleType="fitCenter"
81
                android:layout_width="wrap_content"
82
                android:layout_height="match_parent"
83
                android:onClick="onBandage"
84
                android:background="@android:color/transparent"
85
                android:src="@drawable/ui_bandaged"/>
86

    
87
        </LinearLayout>
88

    
89
    </LinearLayout>
90

    
91
    <ScrollView
92
        android:id="@+id/objectScroll"
93
        android:layout_width="match_parent"
94
        android:layout_height="0dp"
95
        android:layout_weight="0.84"
96
        android:background="@color/grey">
97

    
98
        <GridLayout
99
            android:id="@+id/objectGrid"
100
            android:layout_width="match_parent"
101
            android:layout_height="wrap_content">
102
        </GridLayout>
103

    
104
    </ScrollView>
105

    
106
    <LinearLayout
107
        android:id="@+id/lowerBar"
108
        android:layout_width="match_parent"
109
        android:layout_height="0dp"
110
        android:layout_weight="0.08"
111
        android:orientation="horizontal"
112
        android:background="@color/dark_grey">
113

    
114
        <RelativeLayout
115
            android:id="@+id/bottomLayout"
116
            android:layout_width="match_parent"
117
            android:layout_height="match_parent"
118
            android:paddingEnd="10dp"
119
            android:paddingStart="10dp">
120

    
121
            <ImageButton
122
                android:id="@+id/buttonAbout"
123
                android:layout_alignParentStart="true"
124
                android:adjustViewBounds="true"
125
                android:scaleType="fitCenter"
126
                android:layout_width="wrap_content"
127
                android:layout_height="match_parent"
128
                android:onClick="onAbout"
129
                android:background="@android:color/transparent"
130
                android:src="@drawable/ui_info"/>
131

    
132
            <ImageButton
133
                android:id="@+id/buttonUpdates"
134
                android:layout_centerHorizontal="true"
135
                android:adjustViewBounds="true"
136
                android:scaleType="fitCenter"
137
                android:layout_width="wrap_content"
138
                android:layout_height="match_parent"
139
                android:onClick="onUpdates"
140
                android:background="@android:color/transparent"
141
                android:src="@drawable/ui_download"/>
142

    
143
            <TextView
144
                android:id="@+id/bubbleUpdates"
145
                android:adjustViewBounds="true"
146
                android:layout_width="wrap_content"
147
                android:layout_height="wrap_content"
148
                android:layout_alignTop="@+id/buttonUpdates"
149
                android:layout_alignEnd="@+id/buttonUpdates"
150
                android:scaleType="fitCenter"
151
                android:textColor="#FFF"
152
                android:textSize="16sp"
153
                android:textStyle="bold"
154
                android:background="@drawable/badge_circle"/>
155

    
156
            <ImageButton
157
                android:id="@+id/buttonExit"
158
                android:adjustViewBounds="true"
159
                android:layout_alignParentEnd="true"
160
                android:scaleType="fitCenter"
161
                android:layout_width="wrap_content"
162
                android:layout_height="match_parent"
163
                android:onClick="onExit"
164
                android:background="@android:color/transparent"
165
                android:src="@drawable/ui_exit"/>
166

    
167
        </RelativeLayout>
168

    
169
    </LinearLayout>
170

    
171
</LinearLayout>
(37-37/54)