Project

General

Profile

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

magiccube / src / main / res / layout / main.xml @ 953f5ac9

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
        </LinearLayout>
57
58
        <LinearLayout
59
            android:layout_width="0dp"
60
            android:layout_height="match_parent"
61 938add4f leszek
            android:layout_weight="0.2"
62 cb30e768 leszek
            android:orientation="horizontal"
63
            android:gravity="center"
64
            android:background="@android:color/transparent">
65
66
            <ImageButton
67
                android:id="@+id/buttonBandage"
68
                android:adjustViewBounds="true"
69
                android:scaleType="fitCenter"
70
                android:layout_width="wrap_content"
71
                android:layout_height="match_parent"
72
                android:onClick="onBandage"
73
                android:background="@android:color/transparent"
74
                android:src="@drawable/ui_bandaged"/>
75
76
        </LinearLayout>
77
78 e8f6670f Leszek Koltunski
    </LinearLayout>
79
80 cb30e768 leszek
    <ScrollView
81
        android:id="@+id/objectScroll"
82
        android:layout_width="match_parent"
83
        android:layout_height="0dp"
84
        android:layout_weight="0.84"
85
        android:background="@color/grey">
86
87
        <GridLayout
88
            android:id="@+id/objectGrid"
89
            android:layout_width="match_parent"
90
            android:layout_height="wrap_content">
91
        </GridLayout>
92
93
    </ScrollView>
94
95 a7a7cc9c Leszek Koltunski
    <LinearLayout
96 88fb92ba Leszek Koltunski
        android:id="@+id/lowerBar"
97 4c0cd600 Leszek Koltunski
        android:layout_width="match_parent"
98 e3c74c0f Leszek Koltunski
        android:layout_height="0dp"
99 cb30e768 leszek
        android:layout_weight="0.08"
100 3717a94e Leszek Koltunski
        android:orientation="horizontal"
101 cb30e768 leszek
        android:background="@color/dark_grey">
102
103
        <RelativeLayout
104
            android:id="@+id/bottomLayout"
105
            android:layout_width="match_parent"
106
            android:layout_height="match_parent"
107
            android:paddingEnd="10dp"
108
            android:paddingStart="10dp">
109
110
            <ImageButton
111
                android:id="@+id/buttonAbout"
112
                android:layout_alignParentStart="true"
113
                android:adjustViewBounds="true"
114
                android:scaleType="fitCenter"
115
                android:layout_width="wrap_content"
116
                android:layout_height="match_parent"
117
                android:onClick="onAbout"
118
                android:background="@android:color/transparent"
119
                android:src="@drawable/ui_info"/>
120
121
            <ImageButton
122
                android:id="@+id/buttonUpdates"
123
                android:layout_centerHorizontal="true"
124
                android:adjustViewBounds="true"
125
                android:scaleType="fitCenter"
126
                android:layout_width="wrap_content"
127
                android:layout_height="match_parent"
128
                android:onClick="onUpdates"
129
                android:background="@android:color/transparent"
130
                android:src="@drawable/ui_download"/>
131
132
            <TextView
133
                android:id="@+id/bubbleUpdates"
134
                android:adjustViewBounds="true"
135
                android:layout_width="wrap_content"
136
                android:layout_height="wrap_content"
137
                android:layout_alignTop="@+id/buttonUpdates"
138
                android:layout_alignEnd="@+id/buttonUpdates"
139
                android:scaleType="fitCenter"
140
                android:textColor="#FFF"
141
                android:textSize="16sp"
142
                android:textStyle="bold"
143
                android:background="@drawable/badge_circle"/>
144
145
            <ImageButton
146
                android:id="@+id/buttonExit"
147
                android:adjustViewBounds="true"
148
                android:layout_alignParentEnd="true"
149
                android:scaleType="fitCenter"
150
                android:layout_width="wrap_content"
151
                android:layout_height="match_parent"
152
                android:onClick="onExit"
153
                android:background="@android:color/transparent"
154
                android:src="@drawable/ui_exit"/>
155
156
        </RelativeLayout>
157
158 f548942f Leszek Koltunski
    </LinearLayout>
159
160 cb30e768 leszek
</LinearLayout>