{"id":19508712,"url":"https://github.com/commit451/aavd","last_synced_at":"2025-06-11T15:11:44.087Z","repository":{"id":83213958,"uuid":"53446095","full_name":"Commit451/AAVD","owner":"Commit451","description":"Awesome Animated Vector Drawables","archived":false,"fork":false,"pushed_at":"2022-06-27T04:35:58.000Z","size":135,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-08T11:40:45.316Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"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/Commit451.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-08T21:23:14.000Z","updated_at":"2016-03-10T18:40:21.000Z","dependencies_parsed_at":"2023-03-01T21:00:26.240Z","dependency_job_id":null,"html_url":"https://github.com/Commit451/AAVD","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FAAVD","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FAAVD/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FAAVD/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Commit451%2FAAVD/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Commit451","download_url":"https://codeload.github.com/Commit451/AAVD/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240761093,"owners_count":19853254,"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-11-10T23:09:16.871Z","updated_at":"2025-02-25T22:42:10.975Z","avatar_url":"https://github.com/Commit451.png","language":"Java","readme":"# Awesome Animated Vector Drawables\nAwesomely awesome animated vector drawables for all!\n\n[![Build Status](https://travis-ci.org/Commit451/AAVD.svg?branch=master)](https://travis-ci.org/Commit451/AAVD)\n\nFeatures great animated vector drawables, created from scratch or taken from other amazing open source projects. Feel free to make a pull request to include your own!\n\nSee the sample app for a running list of all the drawables in action!\n\n# Gradle Dependency\n\n### Repository\n\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n```\n\n### AAVD Module (3.0+)\nThis module contains animated vector drawables which, thanks to AnimatedVectorDrawableCompat, can work on ALL devices API 11+ by making use of the support library via AppCompat. See more [here](http://android-developers.blogspot.com/2016/02/android-support-library-232.html)\n```gradle\ndependencies {\n\t...\n    compile('com.github.commit451.AAVD:aavd:0.0.1@aar') {\n        transitive = true\n    }\n}\n```\n\n### AAVD Path Module (5.0+)\nThis module contanis animated vector drawables which at this point only work on API 21+ due to the fact that they rely on animating the path of a vector. See [this blog post by Chris Banes](https://medium.com/@chrisbanes/appcompat-v23-2-age-of-the-vectors-91cbafa87c88#.gzhzsvkrf) for more details.\n```gradle\ndependencies {\n\t...\n    compile('com.github.commit451.AAVD:aavd-path:0.0.1@aar') {\n        transitive = true\n    }\n}\n```\n\n# Usage\nAll the available animated vector drawables begin with the prefix `aavd_avd`. It is an annoyingly long prefix, but it assures that the drawables will never collide with ones you create in your app.\nAs far as playing out an animation, you simply call:\n```java\nAnimatedVectorDrawableCompat drawable = AnimatedVectorDrawableCompat.create(context, R.drawable.aavd_avd_likes);\nimageView.setImageDrawable(drawable);\n//... then later, in an on click listener or some other interaction\nDrawable drawable = imageView.getDrawable();\nif (drawable instanceof Animatable) {\n    ((Animatable) drawable).start();\n}\n```\n\nThis library simply provides the drawable resources for you to use. It is basically a resource only library (no Java code). Its purpose is not to help you keep track of the state of the animations. This should be done in a case by case basis, but most of the time, you just need a single boolean value to keep track of which animation needs to play next.\n\nLicense\n--------\n\n    Copyright 2016 Commit 451\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommit451%2Faavd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcommit451%2Faavd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcommit451%2Faavd/lists"}