-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve Trip Status vehicle icon #548
Comments
I'm interested in trying to implement this (along with using the proper icons for the mods of transport → right now it's always the bus icon). I've done a basic implementation using the existing markers and |
@Pokechu22 Thanks for working on this! SVG files for the vehicle marker map icons are in this repo, in the The current bus icon used on the status screen I believe was a direct export from Android Asset Studio to PNGs: You can get SVGs for the bus and other icon modes from the Material Design site: I was hoping, though, we could avoid importing another set of PNGs for the vehicle icon overlaid on circles, and just use the existing PNGs in the project like |
The vehicle icon in
TripDetailsListFragment
(accessible by tapping on vehicle marker balloon, or tapping on an arrival time and then "Show trip status") currently looks like this:I'd like to change it to be a white bus icon inside of a colored circle, similar to the vehicle map markers:
I suppose the animating dot would remain above the circle, unless it fits in between the top of the bus and top of the circle.
IIRC I originally started trying to implement this using XML
<layer-lists>
, but ran into some problems getting the layout to work correctly, and dynamically re-coloring the circle, although I didn't spend a lot of time on it. If we can't do this in XML, we can use the same process as the vehicle map markers - we generated markers in black with white buses, and then dynamically recolor the black part of the bitmap. SeeVehicleOverlay.getVehicleIcon()
andUIUtils.colorBitmap()
for that implementation.SVG files for the vehicle marker icons are in this repo, in the
/icons/vehicle_markers
folder. We can use these to create an SVG file with the circles and bus icon inside, and then translate those SVGs to the PNGs for the app using Android Icon Generator.The text was updated successfully, but these errors were encountered: