{"id":17472366,"url":"https://github.com/pranavpandey/dynamic-motion","last_synced_at":"2025-04-22T10:21:39.125Z","repository":{"id":88144587,"uuid":"156014178","full_name":"pranavpandey/dynamic-motion","owner":"pranavpandey","description":"Provide additional functionality to Android MotionLayout.","archived":false,"fork":false,"pushed_at":"2025-03-05T19:48:25.000Z","size":7103,"stargazers_count":39,"open_issues_count":0,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-12T20:26:25.690Z","etag":null,"topics":["android","animation","constraint","layout","library","motion","view-pager"],"latest_commit_sha":null,"homepage":"https://dynamic.pranavpandey.com","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/pranavpandey.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":"pranavpandey","patreon":"pranavpandey","open_collective":"pranavpandeydev","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["paypal.me/pranavpandeydev"]}},"created_at":"2018-11-03T18:54:44.000Z","updated_at":"2025-03-05T19:48:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"9c69b3bb-6f9b-45db-acf4-21bd7ccdc64d","html_url":"https://github.com/pranavpandey/dynamic-motion","commit_stats":{"total_commits":69,"total_committers":1,"mean_commits":69.0,"dds":0.0,"last_synced_commit":"e6669a66dae58c9f817a919995a3430a5a61b858"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-motion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-motion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-motion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pranavpandey%2Fdynamic-motion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pranavpandey","download_url":"https://codeload.github.com/pranavpandey/dynamic-motion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250078299,"owners_count":21371140,"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","animation","constraint","layout","library","motion","view-pager"],"created_at":"2024-10-18T17:08:53.842Z","updated_at":"2025-04-22T10:21:39.092Z","avatar_url":"https://github.com/pranavpandey.png","language":"Java","funding_links":["https://github.com/sponsors/pranavpandey","https://patreon.com/pranavpandey","https://opencollective.com/pranavpandeydev","paypal.me/pranavpandeydev","https://paypal.me/pranavpandeydev"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"./graphics/icon.png\" height=\"160\"\u003e\n\n# Dynamic Motion\n\n[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![Build Status](https://travis-ci.org/pranavpandey/dynamic-motion.svg?branch=master)](https://travis-ci.org/pranavpandey/dynamic-motion)\n[![Release](https://img.shields.io/maven-central/v/com.pranavpandey.android/dynamic-motion)](https://search.maven.org/artifact/com.pranavpandey.android/dynamic-motion)\n\n**A library to provide additional functionality for [MotionLayout][motion-layout] on \nAndroid 4.3 (API 18) and above. It has `DynamicMotionLayout` which has a built-in `ViewPager` to create \nparallax effects that opens a huge set of possibilities for the original `MotionLayout`.**\n\n\u003e [!IMPORTANT]\n\u003e Since v1.0.0, it is dependent on Java 8.\n\u003cbr/\u003eSince v1.1.0, it is targeting Java 17 to provide maximum compatibility.\n\u003cbr/\u003eSince v1.2.0, the minimum SDK is Android 4.4 (API 19) to comply with the latest policies.\n\n\u003cimg src=\"./graphics/preview.gif\" width=\"280\" height=\"486\"\u003e\n\n---\n\n## Contents\n\n- [Installation](#installation)\n- [Usage](#usage)\n    - [Replace](#replace)\n    - [Page count](#page-count)\n    - [Motion scene](#motion-scene)\n- [License](#license)\n\n---\n\n## Installation\n\nIt can be installed by adding the following dependency to your `build.gradle` file:\n\n```groovy\ndependencies {\n    implementation 'com.pranavpandey.android:dynamic-motion:1.2.0'\n}\n```\n\n---\n\n## Usage\n\nIt is divided into 3 simple steps and whole layout can be configured by just using the `xml` files.\n\n\u003e For a complete reference, please read the [documentation][documentation].\n\n### Replace\n\nFirst, replace the original `MotionLayout` with `DynamicMotionLayout` in `xml` file.\n\n```xml\n\u003ccom.pranavpandey.android.dynamic.motion.widget.DynamicMotionLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    ...\n    \u003e\n\n    ...\n\u003c/com.pranavpandey.android.dynamic.motion.widget.DynamicMotionLayout\u003e\n```\n\n### Page count\n\nSet page count for `ViewPager` to divide the `transition` between different pages.\n\n```xml\n\u003ccom.pranavpandey.android.dynamic.motion.widget.DynamicMotionLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    app:adm_pageCount=\"4\"\n    ...\n    \u003e\n\n    ...\n\u003c/com.pranavpandey.android.dynamic.motion.widget.DynamicMotionLayout\u003e\n```\n\n```java\n// At runtime\ndynamicMotionLayout.setPageCount(int, @Nullable ViewPager2.OnPageChangeCallback);\n```\n\n### Motion scene\n\nAdd a motion scene and use `KeyFrameSet` and `KeyAttribute` to animate the views across different\npages. Please check the [sample][sample] for a [demo scene][demo scene].\n\n```xml\n\u003ccom.pranavpandey.android.dynamic.motion.widget.DynamicMotionLayout\n    xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    app:layoutDescription=\"@xml/motion_scene\"\n    app:adm_pageCount=\"4\"\n    ...\n    \u003e\n\n    ...\n\u003c/com.pranavpandey.android.dynamic.motion.widget.DynamicMotionLayout\u003e\n```\n\n---\n\n## Author\n\nPranav Pandey\n\n[![GitHub](https://img.shields.io/github/followers/pranavpandey?label=GitHub\u0026style=social)](https://github.com/pranavpandey)\n[![Follow on Twitter](https://img.shields.io/twitter/follow/pranavpandeydev?label=Follow\u0026style=social)](https://twitter.com/intent/follow?screen_name=pranavpandeydev)\n[![Donate via PayPal](https://img.shields.io/static/v1?label=Donate\u0026message=PayPal\u0026color=blue)](https://paypal.me/pranavpandeydev)\n\n---\n\n## License\n\n    Copyright 2018-2024 Pranav Pandey\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\n\n[documentation]: https://pranavpandey.github.io/dynamic-motion\n[motion-layout]: https://developer.android.com/reference/android/support/constraint/motion/MotionLayout\n[sample]: ./sample\n[demo scene]: ./sample/src/main/res/xml/motion_scene.xml\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavpandey%2Fdynamic-motion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpranavpandey%2Fdynamic-motion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpranavpandey%2Fdynamic-motion/lists"}