1<?xml version="1.0" encoding="utf-8"?>
2<androidx.constraintlayout.widget.ConstraintLayout
3    xmlns:android="http://schemas.android.com/apk/res/android"
4    xmlns:app="http://schemas.android.com/apk/res-auto"
5    xmlns:tools="http://schemas.android.com/tools"
6    android:id="@+id/activity_main"
7    android:layout_width="match_parent"
8    android:layout_height="match_parent"
9    android:background="@android:color/background_dark"
10    android:windowIsFloating="true"
11    tools:context=".MainClusterActivity">
12
13    <androidx.constraintlayout.widget.Guideline
14        android:layout_width="wrap_content"
15        android:layout_height="wrap_content"
16        android:id="@+id/left_unobscured"
17        android:orientation="vertical"
18        app:layout_constraintGuide_begin="@dimen/speedometer_overlap_width"/>
19
20    <androidx.constraintlayout.widget.Guideline
21        android:layout_width="wrap_content"
22        android:layout_height="wrap_content"
23        android:id="@+id/right_unobscured"
24        android:orientation="vertical"
25        app:layout_constraintGuide_end="@dimen/speedometer_overlap_width"/>
26
27    <androidx.constraintlayout.widget.Guideline
28        android:layout_width="wrap_content"
29        android:layout_height="wrap_content"
30        android:id="@+id/gauges_top"
31        android:orientation="horizontal"
32        app:layout_constraintGuide_begin="@dimen/speedometer_top"/>
33
34    <androidx.viewpager.widget.ViewPager
35        android:id="@+id/pager"
36        android:layout_width="match_parent"
37        android:layout_height="0dp"
38        app:layout_constraintTop_toTopOf="parent"
39        app:layout_constraintBottom_toTopOf="@+id/info"/>
40
41    <LinearLayout
42        android:id="@+id/info"
43        android:layout_width="0dp"
44        android:layout_height="@dimen/info_height"
45        app:layout_constraintLeft_toRightOf="@+id/left_unobscured"
46        app:layout_constraintRight_toLeftOf="@+id/right_unobscured"
47        app:layout_constraintBottom_toBottomOf="parent"
48        android:gravity="center">
49
50        <LinearLayout
51            android:layout_width="wrap_content"
52            android:layout_height="wrap_content"
53            android:orientation="vertical"
54            android:gravity="start">
55
56            <TextView
57                android:layout_height="wrap_content"
58                android:layout_width="wrap_content"
59                android:includeFontPadding="false"
60                android:text="@string/info_fuel_label"
61                android:textSize="@dimen/info_label_text_size"/>
62
63            <TextView
64                android:id="@+id/info_fuel"
65                android:layout_height="wrap_content"
66                android:layout_width="wrap_content"
67                android:includeFontPadding="false"
68                android:text="@string/info_value_empty"
69                android:textSize="@dimen/info_value_text_size"/>
70
71            <TextView
72                android:layout_height="wrap_content"
73                android:layout_width="wrap_content"
74                android:includeFontPadding="false"
75                android:text="@string/info_range_label"
76                android:textSize="@dimen/info_label_text_size"/>
77
78            <TextView
79                android:id="@+id/info_range"
80                android:layout_height="wrap_content"
81                android:layout_width="wrap_content"
82                android:includeFontPadding="false"
83                android:text="@string/info_value_empty"
84                android:textSize="@dimen/info_value_text_size"/>
85        </LinearLayout>
86
87        <include
88            android:layout_width="0dp"
89            android:layout_height="match_parent"
90            android:layout_weight="1"
91            android:id="@+id/navigation_state"
92            layout="@layout/include_navigation_state"/>
93
94        <LinearLayout
95            android:layout_width="wrap_content"
96            android:layout_height="wrap_content"
97            android:orientation="vertical"
98            android:gravity="end">
99
100            <TextView
101                android:layout_height="wrap_content"
102                android:layout_width="wrap_content"
103                android:includeFontPadding="false"
104                android:text="@string/info_speed_label"
105                android:textSize="@dimen/info_label_text_size"/>
106
107            <TextView
108                android:id="@+id/info_speed"
109                android:layout_height="wrap_content"
110                android:layout_width="wrap_content"
111                android:includeFontPadding="false"
112                android:text="@string/info_value_empty"
113                android:textSize="@dimen/info_value_text_size"/>
114
115            <TextView
116                android:layout_height="wrap_content"
117                android:layout_width="wrap_content"
118                android:includeFontPadding="false"
119                android:text="@string/info_rpm_label"
120                android:textSize="@dimen/info_label_text_size"/>
121
122            <TextView
123                android:id="@+id/info_rpm"
124                android:layout_height="wrap_content"
125                android:layout_width="wrap_content"
126                android:includeFontPadding="false"
127                android:text="@string/info_value_empty"
128                android:textSize="@dimen/info_value_text_size"/>
129        </LinearLayout>
130    </LinearLayout>
131
132    <ImageView
133        android:id="@+id/left_gauge"
134        android:layout_width="@dimen/speedometer_width"
135        android:layout_height="@dimen/speedometer_height"
136        android:src="@drawable/speedometer"
137        android:elevation="2dp"
138        app:layout_constraintTop_toBottomOf="@+id/gauges_top"
139        app:layout_constraintRight_toLeftOf="@+id/left_unobscured"/>
140
141    <ImageView
142        android:id="@+id/right_gauge"
143        android:layout_width="@dimen/speedometer_width"
144        android:layout_height="@dimen/speedometer_height"
145        android:src="@drawable/speedometer"
146        android:elevation="2dp"
147        app:layout_constraintTop_toBottomOf="@+id/gauges_top"
148        app:layout_constraintLeft_toRightOf="@+id/right_unobscured"/>
149
150    <LinearLayout
151        android:layout_width="wrap_content"
152        android:layout_height="wrap_content"
153        android:orientation="vertical"
154        android:translationZ="4dp"
155        app:layout_constraintLeft_toLeftOf="parent"
156        app:layout_constraintBottom_toBottomOf="parent">
157
158        <Button
159            android:id="@+id/btn_nav"
160            android:layout_width="@dimen/facet_icon_size"
161            android:layout_height="@dimen/facet_icon_size"
162            android:layout_margin="@dimen/facet_icon_margin"
163            android:background="@drawable/ic_nav"
164            android:backgroundTint="@color/icon_color"
165            android:focusableInTouchMode="true" />
166        <Button
167            android:id="@+id/btn_phone"
168            android:layout_width="@dimen/facet_icon_size"
169            android:layout_height="@dimen/facet_icon_size"
170            android:layout_margin="@dimen/facet_icon_margin"
171            android:background="@drawable/ic_phone"
172            android:backgroundTint="@color/icon_color"
173            android:focusableInTouchMode="true" />
174        <Button
175            android:id="@+id/btn_music"
176            android:layout_width="@dimen/facet_icon_size"
177            android:layout_height="@dimen/facet_icon_size"
178            android:layout_margin="@dimen/facet_icon_margin"
179            android:background="@drawable/ic_music"
180            android:backgroundTint="@color/icon_color"
181            android:focusableInTouchMode="true" />
182        <Button
183            android:id="@+id/btn_car_info"
184            android:layout_width="@dimen/facet_icon_size"
185            android:layout_height="@dimen/facet_icon_size"
186            android:layout_margin="@dimen/facet_icon_margin"
187            android:background="@drawable/ic_car_info"
188            android:backgroundTint="@color/icon_color"
189            android:focusableInTouchMode="true" />
190    </LinearLayout>
191
192    <LinearLayout
193        android:layout_width="wrap_content"
194        android:layout_height="wrap_content"
195        android:orientation="vertical"
196        android:translationZ="4dp"
197        app:layout_constraintRight_toRightOf="parent"
198        app:layout_constraintBottom_toBottomOf="parent">
199
200        <TextView
201            android:id="@+id/gear_parked"
202            android:layout_height="wrap_content"
203            android:layout_width="wrap_content"
204            android:layout_marginHorizontal="@dimen/gear_icon_margin"
205            android:text="@string/gear_parked"
206            android:textColor="@color/icon_color"
207            android:textSize="@dimen/gear_text_size"/>
208
209        <TextView
210            android:id="@+id/gear_reverse"
211            android:layout_height="wrap_content"
212            android:layout_width="wrap_content"
213            android:layout_marginHorizontal="@dimen/gear_icon_margin"
214            android:text="@string/gear_reverse"
215            android:textColor="@color/icon_color"
216            android:textSize="@dimen/gear_text_size"/>
217
218        <TextView
219            android:id="@+id/gear_neutral"
220            android:layout_height="wrap_content"
221            android:layout_width="wrap_content"
222            android:layout_marginHorizontal="@dimen/gear_icon_margin"
223            android:text="@string/gear_neutral"
224            android:textColor="@color/icon_color"
225            android:textSize="@dimen/gear_text_size"/>
226
227        <TextView
228            android:id="@+id/gear_drive"
229            android:layout_height="wrap_content"
230            android:layout_width="wrap_content"
231            android:layout_marginHorizontal="@dimen/gear_icon_margin"
232            android:text="@string/gear_drive"
233            android:textColor="@color/icon_color"
234            android:textSize="@dimen/gear_text_size"/>
235
236    </LinearLayout>
237</androidx.constraintlayout.widget.ConstraintLayout>
238