{"id":13396361,"url":"https://github.com/flavioarfaria/KenBurnsView","last_synced_at":"2025-03-13T23:31:00.469Z","repository":{"id":15163052,"uuid":"17890722","full_name":"flavioarfaria/KenBurnsView","owner":"flavioarfaria","description":"Android ImageViews animated by Ken Burns Effect","archived":false,"fork":false,"pushed_at":"2022-08-26T21:23:54.000Z","size":13502,"stargazers_count":2733,"open_issues_count":12,"forks_count":437,"subscribers_count":79,"default_branch":"master","last_synced_at":"2024-08-10T11:27:27.931Z","etag":null,"topics":["android","android-library","imageview","kenburnsview"],"latest_commit_sha":null,"homepage":"","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/flavioarfaria.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":"2014-03-19T03:10:02.000Z","updated_at":"2024-08-05T02:52:19.000Z","dependencies_parsed_at":"2022-09-15T21:41:32.978Z","dependency_job_id":null,"html_url":"https://github.com/flavioarfaria/KenBurnsView","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioarfaria%2FKenBurnsView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioarfaria%2FKenBurnsView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioarfaria%2FKenBurnsView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flavioarfaria%2FKenBurnsView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flavioarfaria","download_url":"https://codeload.github.com/flavioarfaria/KenBurnsView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221421535,"owners_count":16817821,"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":["android","android-library","imageview","kenburnsview"],"created_at":"2024-07-30T18:00:47.401Z","updated_at":"2024-10-25T11:30:25.291Z","avatar_url":"https://github.com/flavioarfaria.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","图片","Library","Index","Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"KenBurnsView\n============\n\nAndroid library that provides an extension to *ImageView* that creates an immersive\nexperience by animating its drawable using the [Ken Burns Effect][KenBurnsEffect].\n\n![Example Image][SampleImage]\n\nOverview\n--------\n\n**KenBurnsView** provides the following advantages:\n\n* **Control**: you can change the duration and the interpolator of transitions and\npause/resume them. You can also listen to events like *onTransitionStart()* and\n*onTransitionEnd()*;\n* **Highly extensible**: you can define how the rectangles to be zoomed\nand panned will be generated;\n* **Libs friendly**: since **KenBurnsView** is a direct extension of *ImageView*,\nit seamlessly works out of the box with your favorite image loader library;\n* **Easy to use**: you can start using it right away. All you need to do\nis to drop the JAR file into your project and replace *ImageView* elements\n in your XML layout files by *com.flaviofaria.kenburnsview.KenBurnsView* ones.\n\n[Changelog][Changelog]\n---------\n\n**Latest version: 1.0.7**\n\n* [Download JAR from Maven Central][Maven]\n\nGradle integration\n------------------\n\nIf you're using Gradle, you can declare this library as a dependency:\n\n```groovy\ndependencies {\n    compile 'com.flaviofaria:kenburnsview:1.0.7'\n}\n```\n\nBasic usage\n-----------\n\n*For a working implementation, see the `sample/` folder.*\n\nThe simplest way to use **KenBurnsView** is by dropping the library JAR file into your project\nadding a view to an XML layout file:\n\n```xml\n\u003ccom.flaviofaria.kenburnsview.KenBurnsView\n    android:id=\"@+id/image\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:src=\"@drawable/your_drawable\" /\u003e\n```\n\nAdvanced usage\n--------------\n\n1. You can set a listener to your view:\n\n```java\nKenBurnsView kbv = (KenBurnsView) findViewById(R.id.image);\nkbv.setTransitionListener(new TransitionListener() {\n    @Override\n    public void onTransitionStart(Transition transition) {\n\n    }\n    @Override\n    public void onTransitionEnd(Transition transition) {\n\n    }\n});\n```\n\n2. You can pause the animation by calling `kbv.pause()` and resume it\nby calling `kbv.resume()`;\n\n3. You can change the duration and the interpolator of transitions:\n\n```java\nRandomTransitionGenerator generator = new RandomTransitionGenerator(duration, interpolator);\nkbv.setTransitionGenerator(generator);\n```\n\n4. If you're willing to have even more control over transitions,\nyou can implement your own `TransitionGenerator`.\n\nQuestions\n---------\n\nYou can ask any question on Stack Overflow using the [android-kenburnsview][StackOverflowTag] tag.\n\nLicense\n-------\n\n[Apache Version 2.0][License]\n\n[KenBurnsEffect]:   http://en.wikipedia.org/wiki/Ken_Burns_effect\n[SampleImage]:      anim.gif\n[Changelog]:        https://github.com/flavioarfaria/KenBurnsView/wiki/Changelog\n[Maven]:            http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22com.flaviofaria%22%20AND%20a%3A%22kenburnsview%22\n[StackOverflowTag]: http://stackoverflow.com/questions/tagged/android-kenburnsview\n[License]:          http://www.apache.org/licenses/LICENSE-2.0.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavioarfaria%2FKenBurnsView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflavioarfaria%2FKenBurnsView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflavioarfaria%2FKenBurnsView/lists"}