{"id":37024763,"url":"https://github.com/hussienfahmy/mefab","last_synced_at":"2026-01-14T03:00:14.998Z","repository":{"id":54136135,"uuid":"441770057","full_name":"Hussienfahmy/MeFab","owner":"Hussienfahmy","description":"Movable Expandable Floating Action Button","archived":false,"fork":false,"pushed_at":"2022-08-08T11:38:03.000Z","size":5629,"stargazers_count":15,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T05:36:43.469Z","etag":null,"topics":["android","android-library","expandable","expandablefab-widget","fab","floating-action-button","floatingactionbutton","kotlin","widget"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"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/Hussienfahmy.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":"2021-12-25T22:40:19.000Z","updated_at":"2024-10-24T16:25:18.000Z","dependencies_parsed_at":"2022-08-13T07:20:25.134Z","dependency_job_id":null,"html_url":"https://github.com/Hussienfahmy/MeFab","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Hussienfahmy/MeFab","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hussienfahmy%2FMeFab","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hussienfahmy%2FMeFab/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hussienfahmy%2FMeFab/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hussienfahmy%2FMeFab/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hussienfahmy","download_url":"https://codeload.github.com/Hussienfahmy/MeFab/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hussienfahmy%2FMeFab/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","android-library","expandable","expandablefab-widget","fab","floating-action-button","floatingactionbutton","kotlin","widget"],"created_at":"2026-01-14T03:00:14.254Z","updated_at":"2026-01-14T03:00:14.958Z","avatar_url":"https://github.com/Hussienfahmy.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/io.github.hussienfahmy/mefab.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.hussienfahmy%22%20AND%20a:%22mefab%22)\n\nMeFab\n=====\n\nFloating Action Button but MOVABLE and EXPANDABLE\n\n\u003cimg src=\"https://github.com/Hussienfahmy/MeFab_Compose/blob/master/images/jetpack-compose-icon_RGB.png\" width=\"70\" height=\"70\"\u003e Available Also as [Compose version](https://github.com/Hussienfahmy/MeFab_Compose)\n\nBased on the power\nof [MotionLayout](https://developer.android.com/training/constraint-layout/motionlayout) MeFab can\nchange the fab positions while moving it around the screen giving you a beautiful design and user\nfriendly experience for user and developer as you can start using it in 3 steps\n\n![overview](images/overview.gif)\n\nInstallation\n--------\nuse Gradle:\n\n```gradle\ndependencies {\n    implementation 'io.github.hussienfahmy:mefab:1.0.4'\n}\n```\n\nOr Maven:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.hussienfahmy.hussienfahmy\u003c/groupId\u003e\n    \u003cartifactId\u003emefab\u003c/artifactId\u003e\n    \u003cversion\u003e1.0.4\u003c/version\u003e\n    \u003ctype\u003eaar\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\nCompatibility\n-------------\n - Minimum Android SDK API level is 21.\n\n - Maximum menu items (Edge fab) is 3.\n\n How to use (3 steps)\n-------------\n1. Create a menu Describe the icon and id for each edge fab (MeFab currently support maximum 3 items)\n\n```xml\n\u003cmenu xmlns:android=\"http://schemas.android.com/apk/res/android\"\u003e\n    \u003citem\n        android:id=\"@+id/menu_check\"\n        android:icon=\"@drawable/ic_baseline_check_24\"\n        android:title=\"Check\" /\u003e\n\n    \u003citem\n        android:id=\"@+id/menu_clear\"\n        android:icon=\"@drawable/ic_baseline_clear_24\"\n        android:title=\"Reset\" /\u003e\n\n    \u003citem\n        android:id=\"@+id/menu_add\"\n        android:icon=\"@drawable/ic_baseline_add_24\"\n        android:title=\"Add\" /\u003e\n\u003c/menu\u003e\n```\n\n2. In the view XML you want to place MeFab\n\n```xml\n    \u003cio.hussienfahmy.mefab.MovableExpandedFloatingActionButton\n        android:id=\"@+id/me_fab\"\n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:closeAfterEdgeFabClick=\"true\"\n        app:layout_constraintBottom_toBottomOf=\"parent\"\n        app:layout_constraintEnd_toEndOf=\"parent\"\n        app:layout_constraintStart_toStartOf=\"parent\"\n        app:layout_constraintTop_toTopOf=\"parent\"\n        app:edges=\"@menu/fabs_menu\" /\u003e\n\u003c!--    app:closeAfterEdgeFabClick: default: false, the fabs on the edge return to center when one of them clicked--\u003e\n\u003c!--    app:edges: the menu describing the edge fabs--\u003e\n```\n\n3. Finally add click listener to receive the id as a callback when the edge fab clicked\n\n```kotlin\n        binding.meFab.setOnEdgeFabClickListener(OnEdgeFabClickListener { id -\u003e\n            Toast.makeText(\n                context,\n                when (id) {\n                    R.id.menu_add -\u003e \"Add Clicked\"\n                    R.id.menu_check -\u003e \"Check Mark Clicked\"\n                    R.id.menu_clear -\u003e \"Clear Clicked\"\n                    else -\u003e \"\"\n                }, Toast.LENGTH_SHORT\n            ).show()\n        })\n```\n\nUsing By\n--------\n[GPA Manager](https://play.google.com/store/apps/details?id=com.hussienFahmy.myGpaManager)\n\nFeel free to make a pull request and your app here\n\nContribution\n--------\nAll contributions are welcome for resolving issues or enhancing performance\n\nLicense\n--------\n\n    Copyright (c) 2021 Hussien Fahmy\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhussienfahmy%2Fmefab","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhussienfahmy%2Fmefab","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhussienfahmy%2Fmefab/lists"}