{"id":15942162,"url":"https://github.com/mainrs/android-compose-menuactions","last_synced_at":"2025-04-03T21:17:02.966Z","repository":{"id":103655850,"uuid":"503136768","full_name":"mainrs/android-compose-menuactions","owner":"mainrs","description":"An Android Compose library adding TopBar menu actions.","archived":false,"fork":false,"pushed_at":"2022-06-19T09:55:08.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T09:13:48.891Z","etag":null,"topics":["android-compose","android-library","kotlin","kotlin-android"],"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/mainrs.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":"2022-06-13T22:45:51.000Z","updated_at":"2022-06-19T09:55:31.000Z","dependencies_parsed_at":"2023-05-24T03:30:30.155Z","dependency_job_id":null,"html_url":"https://github.com/mainrs/android-compose-menuactions","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/mainrs%2Fandroid-compose-menuactions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainrs%2Fandroid-compose-menuactions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainrs%2Fandroid-compose-menuactions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mainrs%2Fandroid-compose-menuactions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mainrs","download_url":"https://codeload.github.com/mainrs/android-compose-menuactions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247078867,"owners_count":20879953,"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":["android-compose","android-library","kotlin","kotlin-android"],"created_at":"2024-10-07T07:40:28.921Z","updated_at":"2025-04-03T21:17:02.935Z","avatar_url":"https://github.com/mainrs.png","language":"Kotlin","readme":"# Compose Action Menu Items\n\n\u003e Based on https://gist.github.com/MachFour/369ebb56a66e2f583ebfb988dda2decf, originally licensed\n\u003e under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).\n\u003e\n\u003e The idea has been extended on and appropriate changes have been made.\n\n# Installation\n\nFirst, make sure that https://jitpack.io has been declared as a Maven repository. Then just declare\nthe dependency either in Gradle\n\n```groovy\ndependencies {\n    implementation 'com.github.mainrs:android-compose-menuactions:1.0.0'\n}\n```\n\nor the new Kotlin DSL\n\n```kotlin\ndependencies {\n    implementation(\"com.github.mainrs:android-compose-menuactions:1.0.0\")\n}\n```\n\n# Usage\n\n```kotlin\n@Composable\nfun MainContent() {\n    SmallTopAppBar(title = { Text(text = \"Test App\") }, actions = {\n        ActionMenu(actions = listOf(\n            Action(title = R.string.synchronize,\n                icon = Icons.Default.Sync,\n                iconContentDescription = R.string.synchronize_cd,\n                onClick = {}),\n\n            Action(title = R.string.settings,\n                icon = Icons.Default.Settings,\n                iconContentDescription = R.string.settings_cd,\n                onClick = {}),\n        ))\n    })\n}\n```\n\nThere is a small example app under [./app] that also showcases how the `maxIcons` property\ninfluences the menu layout.\n\n# License\n\nThis project is licensed under the [MIT license](./license).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainrs%2Fandroid-compose-menuactions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmainrs%2Fandroid-compose-menuactions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmainrs%2Fandroid-compose-menuactions/lists"}