{"id":14961297,"url":"https://github.com/florent37/motion-shapeofview","last_synced_at":"2025-05-11T15:43:37.839Z","repository":{"id":91120172,"uuid":"158231868","full_name":"florent37/Motion-ShapeOfView","owner":"florent37","description":"Explain how to use MotionLayout with ShapeOfView","archived":false,"fork":false,"pushed_at":"2019-04-17T04:14:48.000Z","size":3408,"stargazers_count":243,"open_issues_count":3,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-31T21:42:50.336Z","etag":null,"topics":["animations","java","kotlin","layout","material","material-design","material-ui","motion","shape"],"latest_commit_sha":null,"homepage":"https://medium.com/p/26a7ab10142f","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/florent37.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-11-19T13:54:53.000Z","updated_at":"2025-03-14T08:02:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"8fa61928-48d0-4ea1-9a25-ba76df627392","html_url":"https://github.com/florent37/Motion-ShapeOfView","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":"0.16666666666666663","last_synced_commit":"c82442e051a18c42396a7786c7d0e70353441c85"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMotion-ShapeOfView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMotion-ShapeOfView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMotion-ShapeOfView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/florent37%2FMotion-ShapeOfView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/florent37","download_url":"https://codeload.github.com/florent37/Motion-ShapeOfView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253438358,"owners_count":21908723,"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":["animations","java","kotlin","layout","material","material-design","material-ui","motion","shape"],"created_at":"2024-09-24T13:24:40.913Z","updated_at":"2025-05-10T15:36:34.565Z","avatar_url":"https://github.com/florent37.png","language":"Kotlin","readme":"# MotionShapeOfView\n\nExplain how to use MotionLayout with ShapeOfView\n\nThis project is the sample of a medium article : https://medium.com/p/26a7ab10142f\n\nhttps://github.com/florent37/ShapeOfView\n\n```\ndependencies {\n    implementation 'com.github.florent37:shapeofview:1.4.6'\n    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha2'\n}\n```\n\n[![screen](https://raw.githubusercontent.com/florent37/Motion-ShapeOfView/master/medias/arc.gif)](https://www.github.com/florent37/Motion-ShapeOfView)\n\n[![screen](https://raw.githubusercontent.com/florent37/Motion-ShapeOfView/master/medias/diagonal.gif)](https://www.github.com/florent37/Motion-ShapeOfView)\n\n# Layout \n\nhttps://github.com/florent37/Motion-ShapeOfView/blob/master/app/src/main/res/layout/activity_arc_list.xml\n\n```xml\n\u003candroidx.constraintlayout.motion.widget.MotionLayout\n        xmlns:android=\"http://schemas.android.com/apk/res/android\"\n        xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n        android:layout_width=\"match_parent\"\n        android:layout_height=\"match_parent\"\n        app:layoutDescription=\"@xml/collapsing_header_arc\"\n        app:showPaths=\"false\"\u003e\n\n    \u003candroidx.recyclerview.widget.RecyclerView\n            android:id=\"@+id/recyclerView\"\n            android:layout_width=\"0dp\"\n            android:layout_height=\"0dp\"/\u003e\n\n    \u003ccom.github.florent37.shapeofview.shapes.ArcView\n            android:id=\"@+id/header\"\n            android:layout_width=\"0dp\"\n            android:layout_height=\"200dp\"\n            android:elevation=\"4dp\"\n            app:shape_arc_cropDirection=\"outside\"\n            app:shape_arc_height=\"26dp\"\n            app:shape_arc_position=\"bottom\"\u003e\n\n        \u003candroidx.appcompat.widget.AppCompatImageView\n                app:srcCompat=\"@drawable/effeil_tower2\"/\u003e\n\n    \u003c/com.github.florent37.shapeofview.shapes.ArcView\u003e\n\n    \u003candroidx.appcompat.widget.AppCompatTextView\n            android:id=\"@+id/headerText\"\n            android:text=\"I love paris\"\n            /\u003e\n\n\u003c/androidx.constraintlayout.motion.widget.MotionLayout\u003e\n```\n\n# Motion\n\nhttps://github.com/florent37/Motion-ShapeOfView/blob/master/app/src/main/res/xml/collapsing_header_arc.xml\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cMotionScene xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\u003e\n\n    \u003cTransition\n        app:constraintSetEnd=\"@id/end\"\n        app:constraintSetStart=\"@id/start\"\u003e\n\n        \u003cOnSwipe\n            app:dragDirection=\"dragUp\"\n            app:touchAnchorId=\"@id/recyclerView\"\n            app:touchAnchorSide=\"top\" /\u003e\n\n    \u003c/Transition\u003e\n\n    \u003cConstraintSet android:id=\"@+id/start\"\u003e\n        \u003cConstraint\n            android:id=\"@id/header\"\n            android:layout_height=\"240dp\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"parent\"\u003e\n            \u003cCustomAttribute\n                app:attributeName=\"arcHeightDp\"\n                app:customFloatValue=\"60\" /\u003e\n        \u003c/Constraint\u003e\n\n        \u003cConstraint\n            android:id=\"@id/headerText\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            app:layout_constraintBottom_toBottomOf=\"@+id/header\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"@+id/header\"\u003e\n\n            \u003cCustomAttribute\n                app:attributeName=\"textSize\"\n                app:customFloatValue=\"40\" /\u003e\n        \u003c/Constraint\u003e\n    \u003c/ConstraintSet\u003e\n\n    \u003cConstraintSet android:id=\"@+id/end\"\u003e\n        \u003cConstraint\n            android:id=\"@id/header\"\n            android:layout_height=\"80dp\"\n            app:layout_constraintEnd_toEndOf=\"parent\"\n            app:layout_constraintStart_toStartOf=\"parent\"\n            app:layout_constraintTop_toTopOf=\"parent\"\u003e\n            \u003cCustomAttribute\n                app:attributeName=\"arcHeightDp\"\n                app:customFloatValue=\"0\" /\u003e\n        \u003c/Constraint\u003e\n        \u003cConstraint\n            android:id=\"@id/headerText\"\n            android:layout_width=\"wrap_content\"\n            android:layout_height=\"wrap_content\"\n            android:layout_marginStart=\"14sp\"\n            app:layout_constraintBottom_toBottomOf=\"@+id/header\"\n            app:layout_constraintStart_toStartOf=\"@+id/header\"\n            app:layout_constraintTop_toTopOf=\"@+id/header\"\u003e\n\n            \u003cCustomAttribute\n                app:attributeName=\"textSize\"\n                app:customFloatValue=\"20\" /\u003e\n        \u003c/Constraint\u003e\n\n    \u003c/ConstraintSet\u003e\n\n\u003c/MotionScene\u003e\n```\n\n\n# Fiches Plateau Moto\n\nUtilisé dans l'application de révisions de permis moto, fiches plateau moto https://www.fiches-plateau-moto.fr/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2Fmotion-shapeofview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflorent37%2Fmotion-shapeofview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflorent37%2Fmotion-shapeofview/lists"}