{"id":30796894,"url":"https://github.com/athbk/coordinatormenu","last_synced_at":"2025-09-05T17:10:39.882Z","repository":{"id":144200159,"uuid":"151232081","full_name":"ATHBK/CoordinatorMenu","owner":"ATHBK","description":"The library creates a floating menu like the app momo, vtcpay, wepay","archived":false,"fork":false,"pushed_at":"2018-10-08T01:18:38.000Z","size":7534,"stargazers_count":162,"open_issues_count":0,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-08-01T09:43:19.444Z","etag":null,"topics":["android","coordinator","coordinatorlayout","floating","menu","metarial"],"latest_commit_sha":null,"homepage":"","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/ATHBK.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-10-02T09:39:23.000Z","updated_at":"2023-05-19T08:50:05.000Z","dependencies_parsed_at":"2023-06-17T04:00:11.136Z","dependency_job_id":null,"html_url":"https://github.com/ATHBK/CoordinatorMenu","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ATHBK/CoordinatorMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATHBK%2FCoordinatorMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATHBK%2FCoordinatorMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATHBK%2FCoordinatorMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATHBK%2FCoordinatorMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ATHBK","download_url":"https://codeload.github.com/ATHBK/CoordinatorMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ATHBK%2FCoordinatorMenu/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273790206,"owners_count":25168669,"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","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"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","coordinator","coordinatorlayout","floating","menu","metarial"],"created_at":"2025-09-05T17:02:58.505Z","updated_at":"2025-09-05T17:10:39.863Z","avatar_url":"https://github.com/ATHBK.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-CoordinatorMenu-green.svg?style=flat )]( https://android-arsenal.com/details/1/7188 )\n# CoordinatorMenu\n\n\n  ![demo](screenshots/img_style_1.gif)\n  \n  \n  ![demo](screenshots/img_style_2.gif)\n  \n  \n  ![demo](screenshots/img_style_3.gif)\n \n---\n\n\n# Table of Contents\n\n1. [Gradle Dependency](https://github.com/ATHBK/CoordinatorMenu#gradle-dependency)\n   1. [Repository](https://github.com/ATHBK/CoordinatorMenu#repository)\n   2. [Dependency](https://github.com/ATHBK/CoordinatorMenu#dependency)\n2. [Basic Usage](https://github.com/ATHBK/CoordinatorMenu#basic-usage)\n   1. [CoordinatorMenu XML](https://github.com/ATHBK/CoordinatorMenu#coordinatormenu-xml)\n   2. [Attributes](https://github.com/ATHBK/CoordinatorMenu#coordinatormenu-attr )\n3. [Init Java](https://github.com/ATHBK/CoordinatorMenu#init-from-java)\n4. [License](https://github.com/ATHBK/CoordinatorMenu#license)\n\n   \n---\n\n# Gradle Dependency\n\n\n#### Repository\n\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url 'https://jitpack.io' }\n\t}\n}\n```\n\n#### Dependency\n\nAdd this to your module's `build.gradle` file:\n\n```gradle\ndependencies {\n\tcompile 'com.github.ATHBK:CoordinatorMenu:v1.0'\n}\n```\n\n---\n\n# Basic Usage\n\n#### CoordinatorMenu XML\n\nTo use this CoordinatorMenu in your layout simply copy and paste the xml below. \n\n```xml\n\u003ccom.athbk.coordinatormenu.CoordinatorMenuLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n    xmlns:tools=\"http://schemas.android.com/tools\"\n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\"\n    android:id=\"@+id/menuLayout\"\n    app:menu_size=\"25dp\"\n    app:menu_big_size=\"50dp\"\n    app:menu_big_padding_top=\"16dp\"\n    app:menu_big_padding_bottom=\"16dp\"\n    app:menu_padding_left=\"82dp\"\n    app:menu_title_text_position=\"none\"\n    app:menu_padding_item=\"16dp\"\u003e\n\n\u003c/com.athbk.coordinatormenu.CoordinatorMenuLayout\u003e\n````\n\n#### CoordinatorMenu Attr \n\nThere are several other attributes that can be used to configure background menu, size of item menu, size of text, ...\n\n| Attrrs                          |                           |  type                             | option                   |\n| --------------------------------|:-------------------------:|-----------------------------------|--------------------------|\n| menu_size                       | size's normal menu                                            |dimension|                |\n| menu_padding_left               | padding left of normal menu                                   |dimension|                |\n| menu_padding_right              | padding right of normal menu                                  |dimension|                |\n| menu_padding_item               | distance between items                                        |dimension|                |\n| menu_big_size                   | size's big menu                                               |dimension|                |\n| menu_big_padding_top            | padding top of big menu                                       |dimension|                |\n| menu_big_padding_bottom         | padding bottom of big menu                                    |dimension|                |\n| menu_background_resource        |                                                               |dimension|                |\n| menu_background_color           |                                                               |color    |                |\n| menu_background_spacing_resource|                                                               |dimension|                |\n|menu_background_spacing_color    |                                                               |color    |                |\n|menu_title_text_size\t            |                                                               |dimension|                |\n|menu_title_text_position         | position of title's menu                                      |enum     | none or bottom |\n|menu_title_text_color            |                                                               |color    |                |\n|menu_title_padding_top           |                                                               |dimension|                |\n|menu_title_padding_bottom        |                                                               |dimension|                |\n|menu_ratio_change_view           |the rate at which the view changes \t                          |float    |                |\n|menu_ratio_max_width_title       | maximum ratio of width's text compared to the size of the menu|float    |                |\n|menu_title_text_style            |                                                               |enum     |none or bold    |\n\n---\n\n# Init from Java\n\n#### Java\n\nHow to use in.\n*Step1: Create Adapter's menu extends CoordinatorMenuAdapter. Ex basic adapter:\n```java\npublic class MenuAdapter extends CoordinatorMenuAdapter {\n\n    Context context;\n\n    public MenuAdapter(Context context) {\n        this.context = context;\n    }\n\n    @Override\n    public MenuViewHolder onCreateHeaderViewHolder(ViewGroup parent) {\n        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_header, parent, false);\n        return new HeaderVH(view);\n    }\n\n    @Override\n    public MenuViewHolder onCreateContentViewHolder(ViewGroup parent) {\n        View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.layout_content_rv, parent, false);\n        return new ContentVH(view);\n    }\n\n    @Override\n    public BaseMenuProp onBindMenuView(int position) {\n        switch (position){\n            case 0:\n                return new BaseMenuProp(\"Menu 1\", R.drawable.ic_home_topup, R.drawable.ic_home_topup_big);\n            case 1:\n                return new BaseMenuProp(\"Menu 2\", R.drawable.ic_home_tranfer, R.drawable.ic_home_menu_tranfer_big);\n            case 2:\n                return new BaseMenuProp(\"Menu 3\", R.drawable.ic_home_castout, R.drawable.ic_home_castout_big);\n            case 3:\n                return new BaseMenuProp(\"Menu 4\", R.drawable.ic_home_scan, R.drawable.ic_home_scan_big);\n        }\n        return null;\n    }\n\n    @Override\n    public int getCountMenu() {\n        return 4;\n    }\n\n\n    @Override\n    public void onItemMenuClickListener(int position) {\n        Intent intent = new Intent(context, MenuStyle2Activity.class);\n        context.startActivity(intent);\n        Log.e(\"TAG\", \"Menu : \" + position + \" click\");\n    }\n\n    class HeaderVH extends MenuViewHolder {\n\n        public HeaderVH(View view) {\n            super(view);\n        }\n    }\n\n    class ContentVH extends MenuViewHolder {\n        RecyclerView recyclerView;\n\n        private RVAdapter adapter;\n\n        public ContentVH(View view) {\n            super(view);\n\n            recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);\n            adapter = new RVAdapter();\n            recyclerView.setLayoutManager(new LinearLayoutManager(context));\n            recyclerView.setAdapter(adapter);\n        }\n    }\n```\n*Step2: \n```java\t\n\tCoordinatorMenuLayout menuLayout = (CoordinatorMenuLayout) findViewById(R.id.menuLayout);\n\n        MenuAdapter adapter = new MenuAdapter(this);\n        menuLayout.setMenuAdapter(adapter);\n```\n---\n# License\n\n    Copyright 2017 ATHBK\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathbk%2Fcoordinatormenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fathbk%2Fcoordinatormenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fathbk%2Fcoordinatormenu/lists"}