feat: Modernize Android samples UI, edge-to-edge insets, and demo verification improvements - #2389
Draft
dkhawk wants to merge 18 commits into
Draft
feat: Modernize Android samples UI, edge-to-edge insets, and demo verification improvements#2389dkhawk wants to merge 18 commits into
dkhawk wants to merge 18 commits into
Conversation
…ML and Multilayer snippets - Use safe fallback `?: ""` instead of force-unwrap `!!` when accessing KML container properties. - Use `lateinit var` for map and context fields in Multilayer snippet to eliminate unnecessary nullable assertions (`!!`).
…ion improvements - Modernize CameraClampingDemo with Material 3 RangeSlider, clamp toggle group, and live camera telemetry - Fix SaveStateDemoActivity parcelable state retention across orientations - Improve dark/light theme contrast and custom InfoWindow layouts in MarkerDemoActivity - Add 60fps OnCameraMoveListener and clean coordinate formatting in EventsDemoActivity and CameraClampingDemoActivity - Initialize LayersDemoActivity to Sydney CBD with visible 3D buildings, traffic, and indoor floorplans - Apply edge-to-edge window insets consistently across Kotlin and Java samples
…ign WearOS Java toolchain
…mat, and borderless button styles
…e shrinking, and fix lint warnings
…nc camera tracking in SplitStreetView demo
…ew to user location
…ACCURACY and handle permission denial gracefully
| map = googleMap | ||
| // Center map camera on Pegman's location with street-level zoom | ||
| googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerPosition, 16f)) | ||
| googleMap.setOnMarkerDragListener(this@SplitStreetViewPanoramaAndMapDemoActivity) |
| map = googleMap; | ||
| // Center map camera on Pegman's location with street-level zoom | ||
| googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(markerPosition, 16f)); | ||
| googleMap.setOnMarkerDragListener(SplitStreetViewPanoramaAndMapDemoActivity.this); |
| mapsKtx = "6.3.0" | ||
| mapsUtils = "5.1.1" | ||
| places = "5.3.0" | ||
| playServicesLocation = "21.3.0" |
…across Kotlin and Java demos
…ds and default initial transparency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the Google Maps Platform Android ApiDemos suite with Material 3 components, comprehensive edge-to-edge window inset handling, dark/light theme contrast fixes, state retention bugfixes, and real-time telemetry improvements.
Key Changes
CameraClampingDemoActivity):RangeSlider([2.0, 21.0], step0.5).MaterialButtonToggleGroupfor Adelaide, Pacific, and Reset bounds with visible active states.GoogleMap.setOnCameraMoveListener.IllegalStateExceptionbounds mismatch crash on Reset Zoom.SaveStateDemoActivity):MarkerDemoActivity):CameraDemoActivity):EventsDemoActivity):OnCameraMoveListenertelemetry tracking.LayersDemoActivity):LatLng(-33.8688, 151.2093), zoom 16.5, tilt 40°) so 3D buildings, traffic overlays, and indoor floorplans are immediately visible.MaterialCheckBox.SamplesBaseActivityacross both Kotlin and Java samples.