Project

General

Profile

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

magiccube / src / main / res / layout / main.xml @ 406c2fa5

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
    </ScrollView>
98
99 a7a7cc9c Leszek Koltunski
    <LinearLayout
100 88fb92ba Leszek Koltunski
        android:id="@+id/lowerBar"
101 4c0cd600 Leszek Koltunski
        android:layout_width="match_parent"
102 e3c74c0f Leszek Koltunski
        android:layout_height="0dp"
103 cb30e768 leszek
        android:layout_weight="0.08"
104 3717a94e Leszek Koltunski
        android:orientation="horizontal"
105 cb30e768 leszek
        android:background="@color/dark_grey">
106
107
        <RelativeLayout
108
            android:id="@+id/bottomLayout"
109
            android:layout_width="match_parent"
110
            android:layout_height="match_parent"
111
            android:paddingEnd="10dp"
112
            android:paddingStart="10dp">
113
114
            <ImageButton
115
                android:id="@+id/buttonAbout"
116
                android:layout_alignParentStart="true"
117
                android:adjustViewBounds="true"
118
                android:scaleType="fitCenter"
119
                android:layout_width="wrap_content"
120
                android:layout_height="match_parent"
121
                android:onClick="onAbout"
122
                android:background="@android:color/transparent"
123
                android:src="@drawable/ui_info"/>
124
125
            <ImageButton
126
                android:id="@+id/buttonUpdates"
127
                android:layout_centerHorizontal="true"
128
                android:adjustViewBounds="true"
129
                android:scaleType="fitCenter"
130
                android:layout_width="wrap_content"
131
                android:layout_height="match_parent"
132
                android:onClick="onUpdates"
133
                android:background="@android:color/transparent"
134
                android:src="@drawable/ui_download"/>
135
136
            <TextView
137
                android:id="@+id/bubbleUpdates"
138
                android:adjustViewBounds="true"
139
                android:layout_width="wrap_content"
140
                android:layout_height="wrap_content"
141
                android:layout_alignTop="@+id/buttonUpdates"
142
                android:layout_alignEnd="@+id/buttonUpdates"
143
                android:scaleType="fitCenter"
144
                android:textColor="#FFF"
145
                android:textSize="16sp"
146
                android:textStyle="bold"
147
                android:background="@drawable/badge_circle"/>
148
149
            <ImageButton
150
                android:id="@+id/buttonExit"
151
                android:adjustViewBounds="true"
152
                android:layout_alignParentEnd="true"
153
                android:scaleType="fitCenter"
154
                android:layout_width="wrap_content"
155
                android:layout_height="match_parent"
156
                android:onClick="onExit"
157
                android:background="@android:color/transparent"
158
                android:src="@drawable/ui_exit"/>
159
160
        </RelativeLayout>
161
162 f548942f Leszek Koltunski
    </LinearLayout>
163
164 cb30e768 leszek
</LinearLayout>