Project

General

Profile

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

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

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 840ad93e leszek
        android:background="?darkC">
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 840ad93e leszek
        android:background="?darkC"
28 5ba1740c leszek
        android:baselineAligned="false">
29 cb30e768 leszek
30
        <LinearLayout
31
            android:layout_width="0dp"
32
            android:layout_height="match_parent"
33 938add4f leszek
            android:layout_weight="0.2"
34 cb30e768 leszek
            android:orientation="horizontal"
35
            android:gravity="center"
36
            android:background="@android:color/transparent">
37
38
            <ImageButton
39
                android:id="@+id/buttonScores"
40
                android:adjustViewBounds="true"
41
                android:scaleType="fitCenter"
42
                android:layout_width="wrap_content"
43
                android:layout_height="match_parent"
44
                android:onClick="onScores"
45
                android:background="@android:color/transparent"
46
                android:src="@drawable/ui_podium"/>
47
48
        </LinearLayout>
49
50
        <LinearLayout
51
            android:layout_width="0dp"
52
            android:layout_height="match_parent"
53 938add4f leszek
            android:layout_weight="0.6"
54 cb30e768 leszek
            android:orientation="horizontal"
55
            android:gravity="center"
56
            android:background="@android:color/transparent">
57 12a991f2 leszek
58
            <ImageButton
59
                android:id="@+id/buttonSettings"
60
                android:adjustViewBounds="true"
61
                android:scaleType="fitCenter"
62
                android:layout_width="wrap_content"
63
                android:layout_height="match_parent"
64
                android:onClick="onSettings"
65
                android:background="@android:color/transparent"
66
                android:src="@drawable/ui_settings"/>
67
68 cb30e768 leszek
        </LinearLayout>
69
70
        <LinearLayout
71
            android:layout_width="0dp"
72
            android:layout_height="match_parent"
73 938add4f leszek
            android:layout_weight="0.2"
74 cb30e768 leszek
            android:orientation="horizontal"
75
            android:gravity="center"
76
            android:background="@android:color/transparent">
77
78
            <ImageButton
79
                android:id="@+id/buttonBandage"
80
                android:adjustViewBounds="true"
81
                android:scaleType="fitCenter"
82
                android:layout_width="wrap_content"
83
                android:layout_height="match_parent"
84
                android:onClick="onBandage"
85
                android:background="@android:color/transparent"
86
                android:src="@drawable/ui_bandaged"/>
87
88
        </LinearLayout>
89
90 e8f6670f Leszek Koltunski
    </LinearLayout>
91
92 cb30e768 leszek
    <ScrollView
93
        android:id="@+id/objectScroll"
94
        android:layout_width="match_parent"
95
        android:layout_height="0dp"
96
        android:layout_weight="0.84"
97 840ad93e leszek
        android:background="?lightC">
98 cb30e768 leszek
    </ScrollView>
99
100 a7a7cc9c Leszek Koltunski
    <LinearLayout
101 88fb92ba Leszek Koltunski
        android:id="@+id/lowerBar"
102 4c0cd600 Leszek Koltunski
        android:layout_width="match_parent"
103 e3c74c0f Leszek Koltunski
        android:layout_height="0dp"
104 cb30e768 leszek
        android:layout_weight="0.08"
105 3717a94e Leszek Koltunski
        android:orientation="horizontal"
106 840ad93e leszek
        android:background="?darkC">
107 cb30e768 leszek
108
        <RelativeLayout
109
            android:id="@+id/bottomLayout"
110
            android:layout_width="match_parent"
111
            android:layout_height="match_parent"
112
            android:paddingEnd="10dp"
113
            android:paddingStart="10dp">
114
115
            <ImageButton
116
                android:id="@+id/buttonAbout"
117
                android:layout_alignParentStart="true"
118
                android:adjustViewBounds="true"
119
                android:scaleType="fitCenter"
120
                android:layout_width="wrap_content"
121
                android:layout_height="match_parent"
122
                android:onClick="onAbout"
123
                android:background="@android:color/transparent"
124
                android:src="@drawable/ui_info"/>
125
126
            <ImageButton
127
                android:id="@+id/buttonUpdates"
128
                android:layout_centerHorizontal="true"
129
                android:adjustViewBounds="true"
130
                android:scaleType="fitCenter"
131
                android:layout_width="wrap_content"
132
                android:layout_height="match_parent"
133
                android:onClick="onUpdates"
134
                android:background="@android:color/transparent"
135
                android:src="@drawable/ui_download"/>
136
137
            <TextView
138
                android:id="@+id/bubbleUpdates"
139
                android:adjustViewBounds="true"
140
                android:layout_width="wrap_content"
141
                android:layout_height="wrap_content"
142
                android:layout_alignTop="@+id/buttonUpdates"
143
                android:layout_alignEnd="@+id/buttonUpdates"
144
                android:scaleType="fitCenter"
145 0a9adc31 leszek
                android:textColor="@color/white"
146 cb30e768 leszek
                android:textSize="16sp"
147
                android:textStyle="bold"
148
                android:background="@drawable/badge_circle"/>
149
150
            <ImageButton
151
                android:id="@+id/buttonExit"
152
                android:adjustViewBounds="true"
153
                android:layout_alignParentEnd="true"
154
                android:scaleType="fitCenter"
155
                android:layout_width="wrap_content"
156
                android:layout_height="match_parent"
157
                android:onClick="onExit"
158
                android:background="@android:color/transparent"
159
                android:src="@drawable/ui_exit"/>
160
161
        </RelativeLayout>
162
163 f548942f Leszek Koltunski
    </LinearLayout>
164
165 cb30e768 leszek
</LinearLayout>