My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4783: Nice-to-have features for the InfoWindow
46 people starred this issue and may be notified of changes. Back to list
Status:  Acknowledged
Owner:  ----


Sign in to add a comment
 
Reported by [email protected], Jan 8, 2013
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]
From my point of view, styling the info window can be done using an InfoWindowAdapter. If you still want to have similar graphic assets, please look at a library of mine called Polaris (https://github.com/cyrilmottier/Polaris) or http://android.cyrilmottier.com/?p=800.

The project and blog article contain some PSDs with all of the resources you need to create your own Google-Maps-alike info windows.
Jan 9, 2013
#2 [email protected]
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
#3 [email protected]
(No comment was entered for this change.)
Labels: Internal-7974139 Internal-7974236
Jan 9, 2013
Project Member #4 [email protected]
(No comment was entered for this change.)
Status: Acknowledged
Mar 16, 2013
#5 [email protected]
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
#6 [email protected]
(No comment was entered for this change.)
Labels: -Internal-7974236
Nov 4, 2013
#7 [email protected]
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
#8 [email protected]
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
#10 [email protected]
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

Powered by Google Project Hosting