{"id":13989567,"url":"https://github.com/JayFang1993/DropDownMenu","last_synced_at":"2025-07-22T11:30:45.481Z","repository":{"id":30955262,"uuid":"34513378","full_name":"JayFang1993/DropDownMenu","owner":"JayFang1993","description":"DropDownMenu for Android,Filter the list based on multiple condition.","archived":false,"fork":false,"pushed_at":"2017-09-01T04:54:58.000Z","size":1973,"stargazers_count":810,"open_issues_count":4,"forks_count":177,"subscribers_count":36,"default_branch":"master","last_synced_at":"2024-11-29T08:39:16.519Z","etag":null,"topics":["android","dropdown","menu"],"latest_commit_sha":null,"homepage":"https://fangjie.me","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/JayFang1993.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":"2015-04-24T10:47:42.000Z","updated_at":"2024-09-30T23:45:01.000Z","dependencies_parsed_at":"2022-09-08T12:10:12.746Z","dependency_job_id":null,"html_url":"https://github.com/JayFang1993/DropDownMenu","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/JayFang1993/DropDownMenu","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayFang1993%2FDropDownMenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayFang1993%2FDropDownMenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayFang1993%2FDropDownMenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayFang1993%2FDropDownMenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JayFang1993","download_url":"https://codeload.github.com/JayFang1993/DropDownMenu/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JayFang1993%2FDropDownMenu/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266483463,"owners_count":23936347,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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","dropdown","menu"],"created_at":"2024-08-09T13:01:45.474Z","updated_at":"2025-07-22T11:30:44.926Z","avatar_url":"https://github.com/JayFang1993.png","language":"Java","funding_links":[],"categories":["Java","Libs"],"sub_categories":["\u003cA NAME=\"Widget\"\u003e\u003c/A\u003eWidget"],"readme":"# DropDownMenu\n\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-DropDownMenu-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1753)\n\nDropDownMenu for Android,filter the list based on multiple condition.\n\n\u003cimg src=\"https://github.com/JayFang1993/DropDownMenu/blob/master/screenshot.gif\" width=\"270\" height=\"450\"/\u003e\n\n To get this project into your build\n----------\n\nStep 1. Add the specific repository to your build file:\n\n```\nrepositories {\n    maven {\n        url \"https://jitpack.io\"\n    }\n}\n```\nStep 2. Add the dependency in your build file (do not forget to specify the correct qualifier, usually 'aar'):\n\n```\ndependencies {\n    compile 'com.github.JayFang1993:DropDownMenu:v0.9'\n}\n```\nThat's it!\nProvided by：Android Arsenal\n\nUsage\n----\n```\n    \u003ccom.jayfang.dropdownmenu.DropDownMenu\n        android:orientation=\"horizontal\"\n        android:layout_width=\"fill_parent\"\n        android:id=\"@+id/menu\"\n        android:background=\"@color/white\"\n        android:layout_height=\"60dp\"/\u003e\n\n\n        mMenu=(DropDownMenu)findViewById(R.id.menu);\n        mMenu.setMenuCount(3);//Menu的个数\n        mMenu.setShowCount(6);//Menu展开list数量太多是只显示的个数\n        mMenu.setShowCheck(true);//是否显示展开list的选中项\n        mMenu.setMenuTitleTextSize(16);//Menu的文字大小\n        mMenu.setMenuTitleTextColor(Color.WHITE);//Menu的文字颜色\n        mMenu.setMenuListTextSize(16);//Menu展开list的文字大小\n        mMenu.setMenuListTextColor(Color.BLACK);//Menu展开list的文字颜色\n        mMenu.setMenuBackColor(Color.GRAY);//Menu的背景颜色\n        mMenu.setMenuPressedBackColor(Color.WHITE);//Menu按下的背景颜色\n        mMenu.setCheckIcon(R.drawable.ico_make);//Menu展开list的勾选图片\n        mMenu.setUpArrow(R.drawable.arrow_up);//Menu默认状态的箭头\n        mMenu.setDownArrow(R.drawable.arrow_down);//Menu按下状态的箭头\n        mMenu.setDefaultMenuTitle(strings);//默认未选择任何过滤的Menu title\n        mMenu.setMenuSelectedListener(new OnMenuSelectedListener() {\n            @Override\n            //Menu展开的list点击事件  RowIndex：list的索引  ColumnIndex：menu的索引\n            public void onSelected(View listview, int RowIndex, int ColumnIndex) {\n\n\n            }\n        });\n```\n\nUpdate \n----\n### 2015.8.17\n```\n        1.优化了onDraw里反复new对象的问题；\n        2.修改部分编码规范。\n```\n### 2015.7.22\n```\n        mMenu.setShowDivider(false);  //是否显示展开list的分割线\n        mMenu.setMenuListBackColor(getResources().getColor(R.color.white));//展开list的背景色\n        mMenu.setMenuListSelectorRes(R.color.white);//展开list的listselector\n        mMenu.setArrowMarginTitle(20);//Menu上箭头图标距title的margin\n        mMenu.setMenuPressedTitleTextColor(Color.BLACK);//Menu按下状态的title文字颜色\n        mMenu.setIsDebug(false);//关闭提醒\n```\n        \nContact\n----------\n* Blog:[https://fangjie.me/](http://fangjie.me/)\n* Email:JayFang1993@gmail.com\n* Twitter:@[jayfang1993](https://twitter.com/jayfang1993)\n* Weibo:@[方杰](http://weibo.com/ncuitstudent)\n\nRemark\n---------\nif you use this library，please tell me your App，thanks！\n\nLicense\n----------\n\n    Copyright 2015 JayFang, Inc.\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        \n\n        \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJayFang1993%2FDropDownMenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJayFang1993%2FDropDownMenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJayFang1993%2FDropDownMenu/lists"}