You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
so to match them we need adjust the shape of the triangle, and a slight gap, drop shadow, and match the font size/bold/centre (with subtitle grey and smaller)
this looks very slick, we could add rounded corners for Android, Google itself is also adding more rounded corners to their designs (see CardView or new Google Play design)
As for Mapbox Android, I'd like to see something that is more in line with Material Design so that it "fits the platform". This is something that @tatsvc could help review.
@tatsvc this already looks great!
I personally prefer the first one. The shadow in the second one is a bit heavy.
only other remark I have is making the gap between infowindow and marker a bit smaller.
It's going to be important to make sure the paddings are nicely balanced, to make it look more elegant! Let me know if you have any questions about this! Main point: give the text enough space to breathe!
Current progress, I'm not 💯 on board, I think drawing it ourselves will give best experience and will remove the negative margin. The code below besides nine patch image contains a bugfix for wrongly positioned InfoWindowTipView.
Will PR this and make an issue for drawing instead of nine patch.
Current progress, I'm not 💯 on board, I think drawing it ourselves will give best experience and will remove the negative margin.
This is a great start @tobrun. Getting a base level in sooner rather than later is a good move. We can always iterate to make it better over time. #SoftwareIsNeverDone
@tobrun While you are at it, support for the blue arrow (possibly optional via a property setting on Marker) will be great for highlighting when clicking on an InfoWindow will result in something happening, e.g. directions.
Activity
tobrun commentedon Oct 22, 2015
Google Maps:
@ljbade:
Mapbox iOS:
@tobrun:
bleege commentedon Oct 22, 2015
The Mapbox iOS InfoWindow is from https://github.com/nfarina/calloutview.
As for Mapbox Android, I'd like to see something that is more in line with Material Design so that it "fits the platform". This is something that @tatsvc could help review.
tatsvc commentedon Oct 23, 2015
I don't know much (anything) about android so I don't know if this would fit in at all 😬 but I'm happy to rework it with some concrete feedback!
Option 1: stroke + drop shadow
Option 2: Thick opaque stroke + drop shadow
tobrun commentedon Oct 23, 2015
@tatsvc this already looks great!
I personally prefer the first one. The shadow in the second one is a bit heavy.
only other remark I have is making the gap between infowindow and marker a bit smaller.
About designing for Android:
I have a ton of more of these resources/vids related to Android design,
ping me if you would like to have more.
ljbade commentedon Oct 23, 2015
I prefer the top one two, makes it look like it floating more.
tatsvc commentedon Oct 23, 2015
tatsvc commentedon Oct 23, 2015
It's going to be important to make sure the paddings are nicely balanced, to make it look more elegant! Let me know if you have any questions about this! Main point: give the text enough space to breathe!
ljbade commentedon Oct 23, 2015
@tobrun if I understand what we need is a nine patch of the corners. And then another bit map clipped to the triangle.
Do you also know what DPI those screen shots are so we can calculate the pixels dimensions?
Then we can give @tatsvc a nice clear set of instructions.
ljbade commentedon Oct 23, 2015
@tobrun if I understand what we need is a nine patch of the corners. And then another bit map clipped to the triangle.
Do you also know what DPI those screen shots are so we can calculate the pixels dimensions?
Then we can give @tatsvc a nice clear set of instructions.
tobrun commentedon Oct 28, 2015
👍
1 remaining item
ljbade commentedon Nov 11, 2015
Here is a rough nine patch I made from @tatsvc PNG:


ljbade commentedon Nov 11, 2015
@tobrun Do you want to experiment with the nine patch ^ and see what you come up with?
Otherwise if you think it might be better implemented using other techniques, see what you find.
tobrun commentedon Nov 11, 2015
👍
yeah will do, will try to whip up some custom drawing as wel.
tobrun commentedon Nov 11, 2015
Might take up leaving InfoWindow open when panning the map.
ljbade commentedon Nov 11, 2015
@tobrun yep should be possible now
tobrun commentedon Nov 13, 2015
@ljbade when I use the resources found ^ and changing their filename to
.9.png,I'm gettinga malformed ninepatch error:
[android] - #2658 improve window background PopupWindowView
tobrun commentedon Nov 13, 2015
Current progress, I'm not 💯 on board, I think drawing it ourselves will give best experience and will remove the negative margin. The code below besides nine patch image contains a bugfix for wrongly positioned InfoWindowTipView.
Will PR this and make an issue for drawing instead of nine patch.
bleege commentedon Nov 13, 2015
This is a great start @tobrun. Getting a base level in sooner rather than later is a good move. We can always iterate to make it better over time.
#SoftwareIsNeverDoneljbade commentedon Nov 15, 2015
@tobrun While you are at it, support for the blue arrow (possibly optional via a property setting on Marker) will be great for highlighting when clicking on an InfoWindow will result in something happening, e.g. directions.
[android] - #2658 improve window background PopupWindowView