blob: c4246063f6b002230a101bc4bbe75203cdc42c22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
|
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:paddingStart="24dp"
android:paddingEnd="24dp"
android:paddingBottom="32dp"
android:background="?attr/colorSurface">
<View
android:layout_width="36dp"
android:layout_height="4dp"
android:layout_gravity="center_horizontal"
android:layout_marginTop="12dp"
android:layout_marginBottom="20dp"
android:background="@color/md_theme_outline" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:text="MAP LAYERS"
android:textSize="11sp"
android:textAllCaps="true"
android:letterSpacing="0.12"
android:fontFamily="sans-serif-light"
android:textColor="@color/instrument_text_secondary" />
<!-- Base map selection -->
<com.google.android.material.chip.ChipGroup
android:id="@+id/chip_group_base"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="24dp"
app:singleSelection="true"
app:selectionRequired="true"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.google.android.material.chip.Chip
android:id="@+id/chip_satellite"
style="@style/Widget.Material3.Chip.Filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Satellite" />
<com.google.android.material.chip.Chip
android:id="@+id/chip_charts"
style="@style/Widget.Material3.Chip.Filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Charts" />
<com.google.android.material.chip.Chip
android:id="@+id/chip_hybrid"
style="@style/Widget.Material3.Chip.Filter"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hybrid" />
</com.google.android.material.chip.ChipGroup>
<!-- Wind divider -->
<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_marginBottom="16dp"
android:background="@color/md_theme_surfaceVariant" />
<!-- Wind toggle -->
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:gravity="center_vertical">
<LinearLayout
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Wind overlay"
android:textSize="15sp"
android:textColor="@color/instrument_text_normal" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="OpenWeatherMap wind speed"
android:textSize="12sp"
android:textColor="@color/instrument_text_secondary" />
</LinearLayout>
<com.google.android.material.switchmaterial.SwitchMaterial
android:id="@+id/switch_wind"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
|