Project

General

Profile

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

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

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
    </ScrollView>
98

    
99
    <LinearLayout
100
        android:id="@+id/lowerBar"
101
        android:layout_width="match_parent"
102
        android:layout_height="0dp"
103
        android:layout_weight="0.08"
104
        android:orientation="horizontal"
105
        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
    </LinearLayout>
163

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