{"id":21942007,"url":"https://github.com/malekkamel/actionsheet","last_synced_at":"2025-04-22T18:10:42.622Z","repository":{"id":90820810,"uuid":"298793424","full_name":"MalekKamel/ActionSheet","owner":"MalekKamel","description":"ActionSheet is an Android clone of iOS action sheet component, completely typical to iOS7 style.","archived":false,"fork":false,"pushed_at":"2020-09-26T15:00:57.000Z","size":175,"stargazers_count":14,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T21:40:29.727Z","etag":null,"topics":["actionsheet","android","bottomsheet","ios","ios7","java","jitpack","kotlin","mobile","os","programming","sheet"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/MalekKamel.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-26T10:48:50.000Z","updated_at":"2024-08-12T11:49:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"5c0cb65a-36c9-4e24-b162-b6d2ce5d59ff","html_url":"https://github.com/MalekKamel/ActionSheet","commit_stats":null,"previous_names":["malekkamel/actionsheet","shabankamell/actionsheet"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FActionSheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FActionSheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FActionSheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MalekKamel%2FActionSheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MalekKamel","download_url":"https://codeload.github.com/MalekKamel/ActionSheet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250296175,"owners_count":21407037,"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":["actionsheet","android","bottomsheet","ios","ios7","java","jitpack","kotlin","mobile","os","programming","sheet"],"created_at":"2024-11-29T03:16:10.991Z","updated_at":"2025-04-22T18:10:42.593Z","avatar_url":"https://github.com/MalekKamel.png","language":"Kotlin","readme":"[![](https://jitpack.io/v/ShabanKamell/ActionSheet.svg)](https://jitpack.io/#ShabanKamell/ActionSheet)\n\nActionSheet\n===========\n\nActionSheet is an Android clone of iOS action sheet component, completely typical to iOS7 style.\n\n\u003cimg src=\"https://github.com/ShabanKamell/ActionSheet/blob/master/blob/raw/action_sheet_2.png?raw=true\" height=\"500\"\u003e\n\n## Installation\n\n#### Gradle:\n```groovy\nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n\ndependencies {\n        implementation 'com.github.ShabanKamell:ActionSheet:x.y.z'\n}\n```\n(Please replace x, y and z with the latest version numbers: [![](https://jitpack.io/v/ShabanKamell/ActionSheet.svg)](https://jitpack.io/#ShabanKamell/ActionSheet))\n\n#### Usage\n\n#### Kotlin \n\n```kotlin\n     val option1 = ActionItem(title = \"Option 1\") {\n            // action selected\n        }\n        // You can set a tag\n        option1.tag = 0\n\n        val option2 = ActionItem(title = \"Option 2\", style = Style.DESTRUCTIVE) {\n            // action selected\n        }\n        val option3 = ActionItem(title = \"Option 3\", isEnabled = false) {\n            // action selected\n        }\n        \n        // Using using DSL\n         ActionSheet.create {\n            title = \"TITLE\"\n            message = \"MESSAGE\"\n            actions = listOf(option1, option2, option3)\n            isCancelable = true // true by default\n            isCancelableOnActionClick = true // true by default\n            show(supportFragmentManager)\n        }\n        \n        // Or using Kotlin Builder\n        ActionSheet.Builder()\n                .actions(listOf(option1, option2, option3))\n                .title(\"TITLE\")\n                .message(\"MESSAGE\")\n                .show(supportFragmentManager)\n```\n\n#### Java\n\n```java\n        ActionItem option1 = new ActionItem(\n                \"Option 1\",\n                () -\u003e {\n                    // Do something\n                    return Unit.INSTANCE;\n                });\n                \n        List\u003cActionItem\u003e actions = new ArrayList\u003c\u003e();\n        actions.add(option1);\n        \n        new ActionSheet.Builder()\n                .title(\"TITLE\")\n                .message(\"MESSAGE\")\n                .actions(actions)\n                .isCancelable(true)\n                .show(manager);\n```\n\n## Contibution\n\nAll contributions are always welcome. Just submit a Pull request **PR**.\n\n### 🛡 License\n\u003cdetails\u003e\n    \u003csummary\u003e\n        click to reveal License\n    \u003c/summary\u003e\n    \n```\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n\u003c/details\u003e\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Factionsheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalekkamel%2Factionsheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalekkamel%2Factionsheet/lists"}