Project

General

Profile

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

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

1 0c52af30 Leszek Koltunski
<?xml version="1.0" encoding="utf-8"?>
2 cb30e768 leszek
<LinearLayout  xmlns:android="http://schemas.android.com/apk/res/android"
3 1cb36646 Leszek Koltunski
    android:id="@+id/relativeLayout"
4 eb49fa90 Leszek Koltunski
    android:layout_width="match_parent"
5 cb30e768 leszek
    android:layout_height="match_parent"
6
    android:weightSum="1.0"
7
    android:orientation="vertical">
8 0c52af30 Leszek Koltunski
9
    <LinearLayout
10 e8f6670f Leszek Koltunski
        android:id="@+id/hiddenBar"
11 eb49fa90 Leszek Koltunski
        android:layout_width="match_parent"
12 e3c74c0f Leszek Koltunski
        android:layout_height="0dp"
13 cb30e768 leszek
        android:layout_weight="0.00"
14 4235de9b Leszek Koltunski
        android:gravity="center"
15 3717a94e Leszek Koltunski
        android:orientation="horizontal"
16 cb30e768 leszek
        android:background="@color/dark_grey">
17 a7a7cc9c Leszek Koltunski
    </LinearLayout>
18
19 e8f6670f Leszek Koltunski
    <LinearLayout
20
        android:id="@+id/upperBar"
21 a8576d91 Leszek Koltunski
        android:layout_width="match_parent"
22 e8f6670f Leszek Koltunski
        android:layout_height="0dp"
23 cb30e768 leszek
        android:layout_weight="0.08"
24 e8f6670f Leszek Koltunski
        android:gravity="center"
25 cb30e768 leszek
        android:weightSum="1.0"
26 e8f6670f Leszek Koltunski
        android:orientation="horizontal"
27 cb30e768 leszek
        android:background="@color/dark_grey">
28
29
        <LinearLayout
30
            android:layout_width="0dp"
31
            android:layout_height="match_parent"
32 938add4f leszek
            android:layout_weight="0.2"
33 cb30e768 leszek
            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 938add4f leszek
            android:layout_weight="0.6"
53 cb30e768 leszek
            android:orientation="horizontal"
54
            android:gravity="center"
55
            android:background="@android:color/transparent">
56 12a991f2 leszek
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 cb30e768 leszek
        </LinearLayout>
68
69
        <LinearLayout
70
            android:layout_width="0dp"
71
            android:layout_height="match_parent"
72 938add4f leszek
            android:layout_weight="0.2"
73 cb30e768 leszek
            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 e8f6670f Leszek Koltunski
    </LinearLayout>
90
91 cb30e768 leszek
    <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 a7a7cc9c Leszek Koltunski
    <LinearLayout
107 88fb92ba Leszek Koltunski
        android:id="@+id/lowerBar"
108 4c0cd600 Leszek Koltunski
        android:layout_width="match_parent"
109 e3c74c0f Leszek Koltunski
        android:layout_height="0dp"
110 cb30e768 leszek
        android:layout_weight="0.08"
111 3717a94e Leszek Koltunski
        android:orientation="horizontal"
112 cb30e768 leszek
        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 f548942f Leszek Koltunski
    </LinearLayout>
170
171 cb30e768 leszek
</LinearLayout>