{"id":13643075,"url":"https://github.com/Cleveroad/FanLayoutManager","last_synced_at":"2025-04-20T21:32:50.996Z","repository":{"id":57718260,"uuid":"69570428","full_name":"Cleveroad/FanLayoutManager","owner":"Cleveroad","description":"Using Fan Layout Manager you can implement the horizontal list, the items of which move like fan blades ","archived":false,"fork":false,"pushed_at":"2017-08-09T12:06:45.000Z","size":13262,"stargazers_count":2054,"open_issues_count":1,"forks_count":252,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-04-07T22:11:07.275Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.cleveroad.com","language":"Java","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/Cleveroad.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-29T13:31:59.000Z","updated_at":"2025-03-10T16:15:00.000Z","dependencies_parsed_at":"2022-09-14T22:41:53.016Z","dependency_job_id":null,"html_url":"https://github.com/Cleveroad/FanLayoutManager","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FFanLayoutManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FFanLayoutManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FFanLayoutManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cleveroad%2FFanLayoutManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cleveroad","download_url":"https://codeload.github.com/Cleveroad/FanLayoutManager/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249965547,"owners_count":21352925,"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-08-02T01:01:40.974Z","updated_at":"2025-04-20T21:32:50.061Z","avatar_url":"https://github.com/Cleveroad.png","language":"Java","readme":"#FanLayoutManager [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome) \u003cimg src=\"https://www.cleveroad.com/public/comercial/label-android.svg\" height=\"20\"\u003e \u003ca href=\"https://www.cleveroad.com/?utm_source=github\u0026utm_medium=label\u0026utm_campaign=contacts\"\u003e\u003cimg src=\"https://www.cleveroad.com/public/comercial/label-cleveroad.svg\" height=\"20\"\u003e\u003c/a\u003e\n![Header image](/images/header.jpg)\n\n## Welcome to Fan Layout Manager for Android by Cleveroad\n\nFan Layout Manager is a new library created at Cleveroad. Our ideas don’t come from nowhere, everything we invent results from the difficulties we overcome. This exactly what happened — we were fighting uniformity! Since traditional view of the simple horizontal list isn’t impressive anymore, we decided to suggest our vision adding some colours and a completely new motion path. \n\n![Demo image](/images/demo_.gif)\n\n#####Check out the animation \u003cstrong\u003e\u003ca target=\"_blank\" href=\"https://www.youtube.com/watch?v=P0r37_tXeMc\"\u003eFan Layout Manager for Android on YouTube\u003c/a\u003e\u003c/strong\u003e in HD quality.\n\nCleveroad gladly shares its creation with everyone who wants to add some visual spice to their Android apps. Take Fan Layout Manager and create!\n\nUsing Fan Layout Manager you can implement the horizontal list, the items of which move like fan blades (in a circular way of a radius to your choice). To give a slightly chaotical effect to the motion, it’s possible to set an angle for the list items. So, every implementation of the library can be unique.\n\n[![Awesome](/images/logo-footer.png)](https://www.cleveroad.com/?utm_source=github\u0026utm_medium=label\u0026utm_campaign=contacts)\n\n### Installation ###\nby Gradle:\n```groovy\n    compile 'com.cleveroad:fan-layout-manager:1.0.5'\n```\n### Setup and usage ###\nUse default FanLayoutManager in code:\n```JAVA\nfanLayoutManager = new FanLayoutManager(getContext());\nrecyclerView.setLayoutManager(fanLayoutManager);\n```\n\nYou can **select/deselect** item using:\n```JAVA\nfanLayoutManager.switchItem(recyclerView, itemPosition); // select/deselect\nfanLayoutManager.deselectItem();                         // just deselect\n```\n\n**Get selected item position**:\n```JAVA\nfanLayoutManager.getSelectedItemPosition(); // return selected item position\nfanLayoutManager.isItemSelected();          // true if item was selected\n```\n\nTo customize ***FanLayoutManager*** we provide settings:\n```JAVA\nFanLayoutManagerSettings fanLayoutManagerSettings = FanLayoutManagerSettings\n                .newBuilder(getContext())\n                .withFanRadius(true)\n                .withAngleItemBounce(5)\n                .withViewWidthDp(120)\n                .withViewHeightDp(160)               \n                .build();\n\nfanLayoutManager = new FanLayoutManager(getContext(), fanLayoutManagerSettings);\nrecyclerView.setLayoutManager(fanLayoutManager);\n```\n\n`.withFanRadius(boolean isFanRadiusEnable)`   - you can enable displaying items in fan style.\u003c/p\u003e\n`.withAngleItemBounce(float angleItemBounce)` - added rendom bounce angle to items from [0.. angleItemBounce).\u003c/p\u003e\n`.withViewWidthDp(float viewWidthDp)`         - custom item width. default 120dp.\u003c/p\u003e\n`.withViewHeightDp(float viewHeightDp)`       - custom item height. default 160dp.\u003c/p\u003e\n\nYou can *remove bounce angle* effect for selected item:\n```JAVA\npublic void straightenSelectedItem(Animator.AnimatorListener listener);\n```\nand you can *restore bounce angle* effect for selected item:\n```JAVA\npublic void restoreBaseRotationSelectedItem(Animator.AnimatorListener listener)\n```\n\nYou can collapse views using:\n```JAVA\npublic void collapseViews();\n```\n## Changelog\nSee [changelog history].\n\n## Support\nIf you have any questions regarding the use of this tutorial, please contact us for support\nat info@cleveroad.com (email subject: «FanLayoutManager for Android. Support request.»)\n\u003cbr\u003eor\n\u003cbr\u003eUse our contacts:\n\u003cbr\u003e\u003ca href=\"https://www.cleveroad.com/?utm_source=github\u0026utm_medium=link\u0026utm_campaign=contacts\"\u003eCleveroad.com\u003c/a\u003e\n\u003cbr\u003e\u003ca href=\"https://www.facebook.com/cleveroadinc\"\u003eFacebook account\u003c/a\u003e\n\u003cbr\u003e\u003ca href=\"https://twitter.com/CleveroadInc\"\u003eTwitter account\u003c/a\u003e\n\u003cbr\u003e\u003ca href=\"https://plus.google.com/+CleveroadInc/\"\u003eGoogle+ account\u003c/a\u003e\n\n## License\n\n\n        The MIT License (MIT)\n\n        Copyright (c) 2015-2016 Cleveroad\n\n        Permission is hereby granted, free of charge, to any person obtaining a copy\n        of this software and associated documentation files (the \"Software\"), to deal\n        in the Software without restriction, including without limitation the rights\n        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n        copies of the Software, and to permit persons to whom the Software is\n        furnished to do so, subject to the following conditions:\n\n        The above copyright notice and this permission notice shall be included in all\n        copies or substantial portions of the Software.\n\n        THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n        SOFTWARE.\n[changelog history]: /CHANGELOG.md\n","funding_links":[],"categories":["布局"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCleveroad%2FFanLayoutManager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCleveroad%2FFanLayoutManager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCleveroad%2FFanLayoutManager/lists"}