{"id":13848893,"url":"https://github.com/japgolly/svg-android","last_synced_at":"2025-05-16T17:07:00.539Z","repository":{"id":6074362,"uuid":"7300500","full_name":"japgolly/svg-android","owner":"japgolly","description":"Fork of svg-android  +SVN history  +Maven  +more","archived":false,"fork":false,"pushed_at":"2016-12-02T12:38:41.000Z","size":1434,"stargazers_count":568,"open_issues_count":6,"forks_count":168,"subscribers_count":40,"default_branch":"master","last_synced_at":"2025-04-12T15:58:52.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/japgolly.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-12-24T00:52:41.000Z","updated_at":"2024-09-09T10:25:18.000Z","dependencies_parsed_at":"2022-09-06T18:51:26.684Z","dependency_job_id":null,"html_url":"https://github.com/japgolly/svg-android","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japgolly%2Fsvg-android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japgolly%2Fsvg-android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japgolly%2Fsvg-android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/japgolly%2Fsvg-android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/japgolly","download_url":"https://codeload.github.com/japgolly/svg-android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254573588,"owners_count":22093731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-04T19:01:01.031Z","updated_at":"2025-05-16T17:07:00.455Z","avatar_url":"https://github.com/japgolly.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Utility\"\u003e\u003c/A\u003eUtility"],"readme":"# Status: Unmaintained. Discontinued.\nThis project is no longer being developed or maintained.\n\n### _\n\nThis is forked from the awesome but unmaintained:\nhttp://code.google.com/p/svg-android/\n\nChanges\n=======\n* Mavenised.\n* Added SVGBuilder to allow easy specification of SVG parsing \u0026 rendering options.\n* ColorFilters can now be applied.\n* Layer opacity and hiding is now supported.\n* This library now works with Robolectric.\n* SVG viewBox attribute is now handled.\n* Numbers with exponents are handled.\n* SVGZ (gzipped svg) auto-detected and supported. (Thank @josefpavlik \u0026 @mstevens83)\n* Performance enhancements.\n* Has most community patches applied. Great work to\n  [josefpavlik](https://github.com/josefpavlik/svg-android) and\n  [mrn](https://github.com/mrn/svg-android)\n\nMaven\n=====\nAdd this to your Android project's pom.xml:\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003ecom.github.japgolly.android\u003c/groupId\u003e\n  \u003cartifactId\u003esvg-android\u003c/artifactId\u003e\n\t\u003cversion\u003e2.0.6\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nUsage\n=====\n\nFirstly, store your SVGs in `res/raw` or `assets`.\n\n```java\n// Load and parse a SVG\nSVG svg = new SVGBuilder()\n            .readFromResource(getResources(), R.raw.someSvgResource) // if svg in res/raw\n            .readFromAsset(getAssets(), \"somePicture.svg\")           // if svg in assets\n            // .setWhiteMode(true) // draw fills in white, doesn't draw strokes\n            // .setColorSwap(0xFF008800, 0xFF33AAFF) // swap a single colour\n            // .setColorFilter(filter) // run through a colour filter\n            // .set[Stroke|Fill]ColorFilter(filter) // apply a colour filter to only the stroke or fill\n            .build();\n\n// Draw onto a canvas\ncanvas.drawPicture(svg.getPicture());\n\n// Turn into a drawable\nDrawable drawable = svg.createDrawable();\n// drawable.draw(canvas);\n// imageView.setImageDrawable(drawable);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapgolly%2Fsvg-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjapgolly%2Fsvg-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjapgolly%2Fsvg-android/lists"}