| Issue 4783: | Nice-to-have features for the InfoWindow | |
| 46 people starred this issue and may be notified of changes. | Back to list |
I've ported one of my apps to the new Android API v2 and noticed, that the the color of the pressed effect could not be modified by the user. It would be nice if there is an API method to set the color of the pressed effect programmatically. Currently all InfoWindows are aligned horizontally centered to the top of the marker. Could you add an API method for defining other layout-positions to the marker (at least horizontally centered to the bottom of the marker / position on the map)? Like MarkerOptions#position(MarkerOptions.TOP|BOTTOM).
Jan 9, 2013
#1
[email protected]
Jan 9, 2013
AFAIK there is no method available to style the info window regarding the pressed effect, since the InfoWindow isnt the actual View you are returning but a screenshot of it. The pressed effect is always the default holo blue. The Polaris library is based / created for the old Google Maps? So I can't use it for the new Android API v2...
Jan 9, 2013
(No comment was entered for this change.)
Labels:
Internal-7974139 Internal-7974236
Jan 9, 2013
(No comment was entered for this change.)
Status:
Acknowledged
Mar 16, 2013
In my opinion a nice implementation for background color could be: View.setPressed(false) View.draw(Canvas) View.setPressed(true) View.draw(Canvas) and store 2 Bitmaps internally instead of one like now and drawing default (orange/blue) color over it when pressed. We could then define every element from the returned View to look differently.
Sep 16, 2013
(No comment was entered for this change.)
Labels:
-Internal-7974236
Nov 4, 2013
For those wanting to use Polaris using Android API v2 it looks like Cyril developed a v2 of Polaris to match! https://github.com/cyrilmottier/Polaris2
Apr 13, 2014
It seems that Polaris v2 doesn't allow you to change the pressed state of info windows. With KitKat toning down the use of holo blue for pressed state the map marker info windows now look very odd. At a very minimum the colour should be changed from holo blue to a kitkat style grey - at least then it wouldn't clash so much with a themed application.
Apr 22, 2014
I'm noticing the same thing as Luke, for some reason the pressed that is still Holo Blue, even though KitKat design has moved to a gray color. Even without the ability to customize the state as a developer, the framework should use the appropriate color, per the Android design standards. |
|
| ► Sign in to add a comment |