Commit 1332bdb
committed
feat(samples): modernize UI, edge-to-edge insets, camera framing, and sample reliability
- Edge-to-Edge & System Insets:
* Updated SamplesBaseActivity (Kotlin & Java) to safely apply window insets to root containers and programmatic layouts without double-insetting nested fragments.
* Corrected constraints and margins across all demo layouts.
- Split Street View Panorama & Map Demo:
* Added Material 3 "My Location" Floating Action Button powered by FusedLocationProviderClient (PRIORITY_HIGH_ACCURACY) with runtime permission handling.
* Added dismissible instruction banner explaining bidirectional sync.
* Synchronized Pegman marker heading and camera tracking between Map and Panorama.
* Updated initial camera framing centered on Sydney Harbour with rich docstrings.
- Snapshot Demo Modernization (SnapshotDemoActivity):
* Redesigned UI with Material 3 cards for capture controls, options, and preview.
* Added custom vector icons (ic_camera, ic_clear) with Apache 2.0 license headers.
* Updated initial camera focal point to Venice (45.4371, 12.3345, zoom 16f).
* Optimized portrait and landscape layouts (layout/ and layout-land/).
- Advanced Markers, Datasets, & Map Overlays:
* AdvancedMarkersDemoActivity: Added custom framed badge iconView with Android green border and LatLngBounds camera initialization enclosing all Southeast Asia markers.
* GroundOverlayDemoActivity: Configured LatLngBounds viewport framing and 0.2f initial transparency so underlying map details remain visible.
* DataDrivenDatasetStylingActivity: Added LatLngBounds with padding to frame dataset features across Kotlin and Java demos.
- Lite List Demo Modernization (LiteListDemoActivity):
* Redesigned list rows with Material 3 MaterialCardView tiles, rounded corners, elevation, and styled headers with location icon.
* Added ic_view_list and ic_view_grid vector drawables.
* Wired MaterialToolbar to support switching between Linear List and 2-column Grid modes.
- Location Source & Core Demos:
* LocationSourceDemoActivity: Fixed toolbar title to display "Location Source Demo".
* Verified PolygonDemoActivity, PolylineDemoActivity, and CircleDemoActivity on device.
- Wear OS Sample (com.example.wearos):
* Added safe exception handling around AmbientModeSupport.attach() in MainActivity and AmbientActivity (Kotlin & Java) to guard against missing wearable shared libraries.
* Verified circular map and interactive marker info windows on Wear OS emulator.
- Compose (FireMarkers), Snippets, & Tutorials:
* FireMarkers: Refactored marker position animations with rememberUpdatedMarkerState.
* Snippets: Fixed null safety and field initialization in KML.kt and Multilayer.kt.
* Tutorials: Modernized string templates, test runners, and dependencies.
* Lint & Resources: Resolved lint warnings, replaced hardcoded strings with resource entries, and specified explicit Locales in String.format.1 parent 748a128 commit 1332bdb
96 files changed
Lines changed: 2077 additions & 742 deletions
File tree
- ApiDemos/project
- common-ui/src/main/res
- drawable
- layout-land
- layout
- values
- java-app
- src
- main/java/com/example/mapdemo
- v3/java/com/example/mapdemo
- kotlin-app
- src
- main
- java/com/example/kotlindemos
- res/layout
- v3/java/com/example/kotlindemos
- FireMarkers/app/src/main/java/com/example/firemarkers
- WearOS/Wearable
- src/main
- java/com/example/wearosmap
- kotlin/com/example/wearosmap/kt
- gradle
- snippets
- app-compose
- app-ktx
- app-utils-ktx/src/main/java/com/example/app_utils_ktx
- app/src/main/java/com/google/maps/example
- tutorials
- java/Polygons/app
- kotlin
- CurrentPlaceDetailsOnMap/app
- Polygons/app
- src/main/java/com/example/polygons
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
Lines changed: 141 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | | - | |
22 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
23 | 33 | | |
24 | 34 | | |
| 35 | + | |
25 | 36 | | |
26 | 37 | | |
27 | | - | |
28 | | - | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | | - | |
31 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
32 | 50 | | |
33 | | - | |
34 | 51 | | |
35 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
36 | 68 | | |
37 | | - | |
38 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
39 | 85 | | |
40 | | - | |
41 | 86 | | |
42 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
43 | 134 | | |
44 | 135 | | |
45 | | - | |
46 | | - | |
| 136 | + | |
| 137 | + | |
47 | 138 | | |
48 | 139 | | |
49 | | - | |
50 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
51 | 147 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
56 | 155 | | |
57 | | - | |
| 156 | + | |
| 157 | + | |
58 | 158 | | |
59 | 159 | | |
60 | | - | |
| 160 | + | |
61 | 161 | | |
62 | | - | |
63 | | - | |
64 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
65 | 178 | | |
66 | | - | |
| 179 | + | |
0 commit comments