Releases: rtchagas/pingplacepicker
Minor UX improvements
- Added default ripple effect to place list items
Fix day/night theme automatic switch
PING was considering always the system theme when to choose between day and night modes.
Now it consider the application theme to do so.
Add functionality to return the actual selected latlng from Maps
Minor bug fix when formatting lat/lng
Fix a bug when the latitude or longitude in a place with coordinates only has no decimals in the seconds representation.
Minor fix in translations
Merged #61 fixing Portuguese translation.
Major changes to UI and support to dark mode theme
This is a major release and it will break your current style for PING.
-
Support to new Material Components theme.
- Now the base theme inherits from
Theme.MaterialComponents.DayNight.NoActionBar
- Now the base theme inherits from
-
Support to dark/night mode.
- PING can now switch to dark mode automatically.
- A dark style will be applied to all maps.
- The application must provide a
values-night/colors.xml
to present the right colors in night mode.
-
New and improved Auto Complete Search UI.
-
Merged PR #59 that automatically moves the camera to the auto complete search result.
-
Fixed issue #56
In order to update your application theme to support PING, you need to override new colors:
For day/light theme:
res/values/colors.xml
<!-- Toolbar color, places icons, text on top of primary surfaces -->
<color name="colorPrimary">@color/material_teal500</color>
<color name="colorPrimaryDark">@color/material_teal800</color>
<color name="colorOnPrimary">@color/material_white</color>
<!-- Accent color in buttons and actions -->
<color name="colorSecondary">@color/material_deeporange500</color>
<color name="colorSecondaryDark">@color/material_deeporange800</color>
<color name="colorOnSecondary">@color/material_white</color>
<!-- Main activity background -->
<color name="colorBackground">@color/material_grey200</color>
<color name="colorOnBackground">@color/material_black</color>
<!-- Cards and elevated views background -->
<color name="colorSurface">@color/material_white</color>
<color name="colorOnSurface">@color/material_black</color>
<!-- Text colors -->
<color name="textColorPrimary">@color/material_on_surface_emphasis_high_type</color>
<color name="textColorSecondary">@color/material_on_surface_emphasis_medium</color>
<color name="colorMarker">@color/material_deeporange400</color>
<color name="colorMarkerInnerIcon">@color/material_white</color>
For night/dark theme:
res/values-night/colors.xml
<color name="colorPrimary">@color/material_teal300</color>
<!-- Let the primary dark color as the surface color to not colorfy the status bar -->
<color name="colorPrimaryDark">@color/colorSurface</color>
<color name="colorOnPrimary">@color/material_black</color>
<color name="colorSecondary">@color/material_deeporange200</color>
<color name="colorSecondaryDark">@color/material_deeporange300</color>
<color name="colorOnSecondary">@color/material_black</color>
<color name="colorBackground">@color/colorSurface</color>
<color name="colorOnBackground">@color/colorOnSurface</color>
<color name="colorSurface">#202125</color>
<color name="colorOnSurface">@color/material_white</color>
<color name="textColorPrimary">@color/material_on_surface_emphasis_high_type</color>
<color name="textColorSecondary">@color/material_on_surface_emphasis_medium</color>
<color name="colorMarker">@color/material_deeporange200</color>
<color name="colorMarkerInnerIcon">@color/colorSurface</color>
In case of doubt in how to implement the new styles, please take a look at the sample app.
Minor UX improvements
- Removes the new Map Toolbar (direction to Google Maps) that automatically appears when clicking on a marker.
- Disables by default the automatic panning (centering) when clicking on a marker.
This was intended to make the UX less disruptive as possible when clicking on the marker.
If you want this behavior back, enable the flag "auto_center_on_marker_click" in your project.
Minor bug fixes and improvements
- Added Czech translation
- Fixed "Select this location" don't work
Minor fixes
- Fixed issue #37
- Minor UI change to search card view.
- Added Turkish translation.
Minor release
- Added native support for Spanish and Catalan
- Updated Gradle and libraries