Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Replace bitmap assests with vector drawable #2736

Closed

Description

@ljbade

Once the new Android Gradle 1.4 plugin is released (#2268) we should replace the existing bitmaps with vector assets.

This allows Android to always correctly generate the right sized image no matter what DPI current or future devices are. It is backwards compatible with old Android versions via the support library.

At the moment we have to add a new set of bitmaps every year or two to keep up with the latest high resolution devices. This is time consuming and also increases our AAR size.

Google has a video explaining it: https://www.youtube.com/watch?v=wlFVIIstKmA

The main requirement to implement is that we have SVG files for all the current drawables. We should keep these in a directory.

This will unblock #2386

Activity

  1. added
    Android
    on Oct 22, 2015
  2. ljbade commented on Oct 22, 2015

    @ljbade
    ContributorAuthor
  3. tatsvc commented on Oct 22, 2015

    @tatsvc

    @ljbade the svg files are here: https://www.dropbox.com/sh/hr6rwyvg4z5gtyi/AADlzuKmW6O8SxEYJhtE3OZ2a?dl=0

    I wasn't sure what to do with the drop shadow on the user dot. It doesn't seem like something that should be in the svg? Can you add that with code?

    As for this guy:
    direction-72

    the semi-transparent circle is 50% opacity. All the other stuff are solid shapes.

    Let me know if you need more information, or different assets.

  4. added this to the android-v2.2.0 milestone on Oct 22, 2015
  5. tobrun commented on Oct 23, 2015

    @tobrun
    Member

    Linking #2386

  6. modified the milestones: android-v2.3.0, on Dec 4, 2015
  7. tobrun commented on Jan 12, 2016

    @tobrun
    Member

    This issue has gone out of date, we are drawing the UserLocationView programatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Android

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions