Obsolete
Status Update
Comments
cy...@gmail.com <cy...@gmail.com> #2
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.
The project and blog article contain some PSDs with all of the resources you need to create your own Google-Maps-alike info windows.
ch...@gmail.com <ch...@gmail.com> #3
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...
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...
ma...@gmail.com <ma...@gmail.com> #4
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.
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.
ja...@gmail.com <ja...@gmail.com> #5
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
lu...@gmail.com <lu...@gmail.com> #6
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.
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.
[Deleted User] <[Deleted User]> #7
[Comment deleted]
[Deleted User] <[Deleted User]> #8
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.
ch...@gmail.com <ch...@gmail.com> #9
jjjhjjh
Description
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).