{"id":21130089,"url":"https://github.com/lemonlabs/ExpandableButtonMenu","last_synced_at":"2025-07-09T01:32:20.963Z","repository":{"id":12606730,"uuid":"15277739","full_name":"lemonlabs/ExpandableButtonMenu","owner":"lemonlabs","description":"[DEPRECATED] An Android library for an expandable button menu","archived":false,"fork":false,"pushed_at":"2014-07-16T13:16:38.000Z","size":1163,"stargazers_count":321,"open_issues_count":0,"forks_count":120,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-03-27T13:23:49.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/lemonlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2013-12-18T08:26:15.000Z","updated_at":"2024-03-27T13:23:49.089Z","dependencies_parsed_at":"2022-09-14T11:22:57.170Z","dependency_job_id":null,"html_url":"https://github.com/lemonlabs/ExpandableButtonMenu","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonlabs%2FExpandableButtonMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonlabs%2FExpandableButtonMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonlabs%2FExpandableButtonMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lemonlabs%2FExpandableButtonMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lemonlabs","download_url":"https://codeload.github.com/lemonlabs/ExpandableButtonMenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225476376,"owners_count":17480215,"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-11-20T05:32:16.192Z","updated_at":"2024-11-20T05:32:22.822Z","avatar_url":"https://github.com/lemonlabs.png","language":"Java","funding_links":[],"categories":["Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"ExpandableButtonMenu\n==================\n\nExpandableButtonMenu is an Android library which implements an expandable button that can be used as a substitute of a fixed size menu.\nIt is a Foursquare like button that expands into three buttons.\n\n![Example Image][3]\n\nIncluding in your project\n-------------------------\n\nThe library is available on Maven Central\n\n    dependencies {\n        compile 'co.lemonlabs:expandable-button-menu:1.0.0'\n    }\n\n\nUsage\n-----\n\nThe library supports Android 2.3+.\n\nJust include this view to your root layout (current only RelativeLayout is supported):\n\n    \u003clt.lemonlabs.android.expandablebuttonmenu.ExpandableMenuOverlay\n        android:id=\"@+id/button_menu\"\n        android:layout_width=\"0dp\"\n        android:layout_height=\"0dp\"\n        android:layout_alignParentBottom=\"true\"\n        android:layout_centerHorizontal=\"true\"\n        android:src=\"@drawable/circle_home\"\n    /\u003e\n\nCustom attributes can be used for easy customization. Add this to your layout declaration:\n\n    xmlns:ebm=\"http://schemas.android.com/apk/res-auto\"\n\nand you can use these attributes\n\n    ebm:dimAmount=\"0.8\"        // Screen dim amount when menu is expanded\n    ebm:mainButtonSize=\"0.25\"  // Main button size in % of screen height\n    ebm:otherButtonSize=\"0.22\" // Expanded menu button size in % of screen height\n    ebm:distanceY=\"0.17\"       // Distance between expanded and collapsed button in screen % of screen height\n    ebm:distanceX=\"0.28\"       // Distance between expanded button in % of screen width\n    ebm:bottomPad=\"0.02\"       // Button padding in % of screen height\n\n    // Button drawable and text resources\n    ebm:closeButtonSrc=\"@drawable/circle_close\"\n    ebm:leftButtonSrc=\"@drawable/circle_1\"\n    ebm:midButtonSrc=\"@drawable/circle_2\"\n    ebm:rightButtonSrc=\"@drawable/circle_3\"\n    ebm:leftButtonText=\"@string/action_left\"\n    ebm:midButtonText=\"@string/action_mid\"\n    ebm:rightButtonText=\"@string/action_right\"\n\nIn your activity/fragment add the callbacks:\n\n    menuOverlay = (ExpandableMenuOverlay) findViewById(R.id.button_menu);\n    menuOverlay.setOnMenuButtonClickListener(new ExpandableButtonMenu.OnMenuButtonClick() {\n        @Override\n        public void onClick(ExpandableButtonMenu.MenuButton action) {\n            switch (action) {\n                case MID:\n                // do stuff and dismiss\n                menuOverlay.getButtonMenu().toggle();\n                break;\n                case LEFT:\n                // do stuff\n                break;\n                case RIGHT:\n                // do stuff\n                break;\n            }\n        }\n    });\n\nAcknowledgements\n--------------------\n* Thanks to Rockmelt android app for inspiration. Unfortunately, their app is no longer [available][1].\n* [NineOldDroids][2] for allowing back porting the library.\n\nDeveloped By\n--------------------\n[Lemon Labs][4]- \u003cteam@lemonlabs.lt\u003e\n\nLicense\n-----------\n\n    Copyright 2013 Lemon Labs\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[1]: http://allthingsd.com/20130802/yahoo-paid-60m-to-70m-for-rockmelt-will-dump-browser-and-use-tech-to-better-deliver-its-media-and-mobile-properties\n[2]: https://github.com/JakeWharton/NineOldAndroids\"\u003ehttps://github.com/JakeWharton/NineOldAndroids/\n[3]: https://raw.github.com/lemonlabs/ExpandableButtonMenu/master/images/demo.gif\n[4]: http://www.lemonlabs.co\n=======\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonlabs%2FExpandableButtonMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flemonlabs%2FExpandableButtonMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flemonlabs%2FExpandableButtonMenu/lists"}