Note that there are some explanatory texts on larger screens.

plurals
  1. POChange or completely remove the highlight color of an InfoWindow of the Google Maps v2 on Android
    primarykey
    data
    text
    <p>Is there any possibility to change the highlight color of an InfoWindow in the Google Maps v2 component for Android? I already accepted the fact that there is no common way to apply custom press highlights for the widgets that reside in a custom InfoWindow View passed through a custom InfoWindowAdapter as the View is rerendered as Bitmap by the map control (<a href="https://developers.google.com/maps/documentation/android/marker#info_windows">https://developers.google.com/maps/documentation/android/marker#info_windows</a> see Note). On the same website there is a hint at the very bottom (<a href="https://developers.google.com/maps/documentation/android/marker#info_window_click_events">https://developers.google.com/maps/documentation/android/marker#info_window_click_events</a>) that says </p> <blockquote> <p>When a user clicks on an info window, onInfoWindowClick(Marker) will be called and the info window will be highlighted in the default highlight color (Holo Blue for devices running Ice Cream Sandwich and newer, orange for earlier versions of Android).</p> </blockquote> <p>So I tried to override the following theme values for my application</p> <pre><code>&lt;item name="android:colorForeground"&gt;@color/black&lt;/item&gt; &lt;item name="android:colorForegroundInverse"&gt;@color/white&lt;/item&gt; &lt;item name="android:colorBackground"&gt;@color/white&lt;/item&gt; &lt;item name="android:cacheColorHint"&gt;@color/white&lt;/item&gt; &lt;item name="android:colorPressedHighlight"&gt;@color/white&lt;/item&gt; &lt;item name="android:colorLongPressedHighlight"&gt;@color/white&lt;/item&gt; &lt;item name="android:colorFocusedHighlight"&gt;@color/white&lt;/item&gt; &lt;item name="android:colorMultiSelectHighlight"&gt;@color/white&lt;/item&gt; &lt;item name="android:colorActivatedHighlight"&gt;@color/white&lt;/item&gt; </code></pre> <p>That should override all default highlight colors with white. Unfortunately it takes no effect at all :/ </p> <p>My assumption is now that the default highlight colors are hardcoded by Google Maps and thus don´t get retrieved from the values of the applied application theme. That means there would be no way to change the highlight color. I hope I´m wrong though. </p> <p>Any ideas? </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload