{"id":13396372,"url":"https://github.com/sephiroth74/ViewRevealAnimator","last_synced_at":"2025-03-13T23:30:59.579Z","repository":{"id":23297510,"uuid":"26656801","full_name":"sephiroth74/ViewRevealAnimator","owner":"sephiroth74","description":"ViewAnimator view with a lollipop style reveal effect","archived":false,"fork":false,"pushed_at":"2016-02-20T16:21:38.000Z","size":1324,"stargazers_count":337,"open_issues_count":1,"forks_count":57,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-07-31T18:17:10.702Z","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/sephiroth74.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-11-14T20:46:33.000Z","updated_at":"2024-06-10T15:00:44.000Z","dependencies_parsed_at":"2022-07-15T23:46:13.204Z","dependency_job_id":null,"html_url":"https://github.com/sephiroth74/ViewRevealAnimator","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/sephiroth74%2FViewRevealAnimator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FViewRevealAnimator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FViewRevealAnimator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sephiroth74%2FViewRevealAnimator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sephiroth74","download_url":"https://codeload.github.com/sephiroth74/ViewRevealAnimator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221421533,"owners_count":16817820,"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-07-30T18:00:48.278Z","updated_at":"2024-10-25T11:30:23.855Z","avatar_url":"https://github.com/sephiroth74.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Index","\u003ca name=\"Reveal\"\u003eReveal\u003c/a\u003e"],"sub_categories":["Personal Blog"],"readme":"[![AndroidLibs](https://img.shields.io/badge/AndroidLibs-ViewRevealAnimator-brightgreen.svg?style=flat)](https://www.android-libs.com/lib/viewrevealanimator?utm_source=github-badge\u0026utm_medium=github-badge\u0026utm_campaign=github-badge)\n\t\tViewRevealAnimator Widget\n==================\n\nViewAnimator view with a lollipop style reveal effect. Regular animation can be set (just like the default ViewAnimator) for android \u003c 21.\n\n\nInstallation\n===\n\nJust add this to your gradle build script:\n```groovy\n    compile 'it.sephiroth.android.library.viewrevealanimator:view-reveal-animator:+'\n```\nUsage\n===\n```xml\n    \u003cit.sephiroth.android.library.viewrevealanimator.ViewRevealAnimator\n        android:layout_centerHorizontal=\"true\"\n        android:id=\"@+id/animator\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        android:animationDuration=\"@android:integer/config_longAnimTime\"\n        app:vra_hideBeforeReveal=\"true\"\n        android:measureAllChildren=\"true\"\n        android:animateFirstView=\"true\"\n        android:outAnimation=\"@anim/out_animation\"\n        android:inAnimation=\"@anim/in_animation\"\n        android:interpolator=\"@android:interpolator/accelerate_decelerate\"\u003e\n\n\n        \u003cYour Views here /\u003e\n\n\n    \u003c/it.sephiroth.android.library.viewrevealanimator.ViewRevealAnimator\u003e\n```\n\nThen in your code:\n```java\n    ViewRevealAnimator mViewAnimator = (ViewRevealAnimator) findViewById(R.id.animator);\n```\n\nTo show the next or previos index :\n```java\n    mViewAnimator.showNext();\n    mViewAnimator.showPrevious();\n```\nor:\n```java\n    mViewAnimator.setDisplayedChild(mViewAnimator.getDisplayedChild()+1, true, new Point(250, 250));\n```\nwhere the first parameter is the targetChild to display, second means animation on/off, and\nthird parameter (optional) is to set a custom origin for the reveal/hide animation\n\n\nShow previous view:\n\n\nPreview\n===\n\n![Preview](./output.gif)\n\n\nLicense\n===\n\n\tThe MIT License (MIT)\n\t[OSI Approved License]\n\tThe MIT License (MIT)\n\n\tCopyright (c) \u003cyear\u003e \u003ccopyright holders\u003e\n\n\tPermission is hereby granted, free of charge, to any person obtaining a copy\n\tof this software and associated documentation files (the \"Software\"), to deal\n\tin the Software without restriction, including without limitation the rights\n\tto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n\tcopies of the Software, and to permit persons to whom the Software is\n\tfurnished to do so, subject to the following conditions:\n\n\tThe above copyright notice and this permission notice shall be included in\n\tall copies or substantial portions of the Software.\n\n\tTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n\tIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n\tFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n\tAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n\tLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n\tOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n\tTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2FViewRevealAnimator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsephiroth74%2FViewRevealAnimator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsephiroth74%2FViewRevealAnimator/lists"}