{"id":13396332,"url":"https://github.com/oguzbilgener/CircularFloatingActionMenu","last_synced_at":"2025-03-13T22:32:08.405Z","repository":{"id":39619199,"uuid":"22042941","full_name":"oguzbilgener/CircularFloatingActionMenu","owner":"oguzbilgener","description":"an animated circular menu for Android","archived":true,"fork":false,"pushed_at":"2018-09-20T01:29:42.000Z","size":3127,"stargazers_count":2734,"open_issues_count":95,"forks_count":668,"subscribers_count":117,"default_branch":"master","last_synced_at":"2025-03-08T12:49:28.292Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oguzbilgener.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}},"created_at":"2014-07-20T20:42:12.000Z","updated_at":"2025-02-24T01:10:06.000Z","dependencies_parsed_at":"2022-07-16T01:00:36.592Z","dependency_job_id":null,"html_url":"https://github.com/oguzbilgener/CircularFloatingActionMenu","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/oguzbilgener%2FCircularFloatingActionMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzbilgener%2FCircularFloatingActionMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzbilgener%2FCircularFloatingActionMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oguzbilgener%2FCircularFloatingActionMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oguzbilgener","download_url":"https://codeload.github.com/oguzbilgener/CircularFloatingActionMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243494300,"owners_count":20299794,"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:45.142Z","updated_at":"2025-03-13T22:32:07.957Z","avatar_url":"https://github.com/oguzbilgener.png","language":"Java","readme":"# CircularFloatingActionMenu\n\n\u003cimg src=\"assets/circularfab.gif\"\u003e\n\nAn animated, customizable circular floating menu for Android, inspired by Path app.\n\n## Getting Started\n### Requirements\n- API \u003e= 15\n\n### Installation\nGrab the AAR from Maven Central by adding it as a dependency in your **build.gradle** file:\n\n```groovy\ndependencies {\n    compile 'com.oguzdev:CircularFloatingActionMenu:1.0.2'\n}\n```\nAlternatively, clone the repo and add `library` as a module to your project.\n\n### Usage\nCircularFloatingActionMenu can be attached to **any view** in your layout. A Floating Action Button implementation is available in the library, with a similar look to new Material Design's FAB. \n\n1 - Create a button to attach the menu:\n\t\n```java\n// in Activity Context\nImageView icon = new ImageView(this); // Create an icon\nicon.setImageDrawable( ... );\n\t\nFloatingActionButton actionButton = new FloatingActionButton.Builder(this)\n\t\t\t\t\t\t\t\t\t\t.setContentView(icon)\n\t\t\t\t\t\t\t\t\t\t.build();\n\t\n```\n\n2 - Create menu items:\n\n```java\nSubActionButton.Builder itemBuilder = new SubActionButton.Builder(this);\n// repeat many times:\nImageView itemIcon = new ImageView(this);\nitemIcon.setImageDrawable( ... ); \nSubActionButton button1 = itemBuilder.setContentView(itemIcon).build();\n \n```\n\n3 - Create the menu with the items:\n\n```java\nFloatingActionMenu actionMenu = new FloatingActionMenu.Builder(this)\n\t\t\t\t\t\t\t\t\t.addSubActionView(button1)\n\t\t\t\t\t\t\t\t\t.addSubActionView(button2)\n\t\t\t\t\t\t\t\t\t// ...\n\t\t\t\t\t\t\t\t\t.attachTo(actionButton)\n\t\t\t\t\t\t\t\t\t.build();\n```\nAnd you're ready to go!\n\n## Customization\n**Animations**, **start angle**, **end angle** and **radius** are customizable via `FloatingActionMenu.Builder`.\n\n`FloatingActionMenu` is the essential class for the menu. Other two classes, `FloatingActionButton` and `SubActionButton` are just **views** and they can be replaced with any other view. You are completely free to create your own menu button and item views.\n\nExisting `FloatingActionButton` and `SubActionButton` views are customizable too. These parameters can be changed via Builders of both classes:\n\n- Theme (Light / Dark)\n- Background drawable\n- LayoutParams (width \u0026 height)\n- Content View\n\n`FloatingActionButton` can be placed to one of **8 predefined positions** on the screen. To place it somewhere else, extend it!\n\n\u003cimg src=\"assets/customizableButtons.png\" height=\"500\"\u003e\n\u003cimg src=\"assets/customViews.png\" height=\"500\"\u003e\n\n### Custom Animations\nYou can write your own animation handler class by extending from `MenuAnimationHandler` to completely customize menu opening and closing animations.\n\nThen all you need is to create an instance of your custom animation handler and pass it to `FloatingActionMenu.Builder` via `setAnimationHandler( )` method.\n\nSee `CustomAnimationHandler` in **samples** module for a sample animation handler.\n\n## Licence\nCircularFloatingActionMenu is released under MIT Licence. See file LICENCE.\n","funding_links":[],"categories":["Index `(light-weight pages)`","浮动菜单","Index","Libs","etc","Uncategorized"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget","Uncategorized"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foguzbilgener%2FCircularFloatingActionMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foguzbilgener%2FCircularFloatingActionMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foguzbilgener%2FCircularFloatingActionMenu/lists"}