{"id":21650685,"url":"https://github.com/czy1121/dialog","last_synced_at":"2026-03-13T23:31:58.617Z","repository":{"id":199057600,"uuid":"532288959","full_name":"czy1121/dialog","owner":"czy1121","description":"AlertDialog扩展(tip/alert/confirm/choose) 自定义对话框(CustomDialog/BottomDialog/DropdownDialog/SideDialog) LoadingDialog/InputDialog/ActionSheetDialog/PickerDialog","archived":false,"fork":false,"pushed_at":"2025-06-13T10:00:21.000Z","size":246,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-13T10:30:40.756Z","etag":null,"topics":["alert","confirm","dialog","dropdown","loading","tip"],"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/czy1121.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,"zenodo":null}},"created_at":"2022-09-03T14:49:01.000Z","updated_at":"2025-06-13T10:00:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"99be7e3e-c685-412e-8492-174a9eff925f","html_url":"https://github.com/czy1121/dialog","commit_stats":null,"previous_names":["czy1121/dialog"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/czy1121/dialog","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fdialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fdialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fdialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fdialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czy1121","download_url":"https://codeload.github.com/czy1121/dialog/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fdialog/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30479349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T20:45:58.186Z","status":"ssl_error","status_checked_at":"2026-03-13T20:45:20.133Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["alert","confirm","dialog","dropdown","loading","tip"],"created_at":"2024-11-25T07:42:01.610Z","updated_at":"2026-03-13T23:31:58.608Z","avatar_url":"https://github.com/czy1121.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dialog\n\nAlertDialog扩展(tip/alert/confirm/choose) 和 自定义对话框(CustomDialog/BottomDialog/DropdownDialog/SideDialog)\n\nAlertDialog扩展\n\n- tip 显示没有按钮的 AlertDialog\n- alert 显示一个按钮(ok)的 AlertDialog\n- confirm 显示两个按钮(ok/cancel)的 AlertDialog\n- choose 弹出一个单选列表\n\n自定义对话框\n\n- CustomDialog - 自定义对话框基类，封装了众多实用功能\n  - 继承自 ComponentDialog，支持生命周期 LifecycleOwner\n  - setLayout 简化设置 Window 的宽高\n  - setDimAmount 简化设置背景的不透明遮罩\n  - setButton 简化按钮事件设置\n  - setView 取代 setContentView 并持有传入的 View\n  - requireView 获取 setView 设置 View\n  - setAnimation 支持通过代码设置 进场/离场 动画\n  - dismiss 重载使离场时默认播放离场动画\n  - dismissImmediately 为不播放动画立即关闭对话框\n  - showInQueue 支持在队列中依次显现弹窗\n- FullscreenDialog - 全屏对话框\n- DropdownDialog - 在指定View的下面弹出对话框\n- TopDialog - 在屏幕顶部弹出的对话框\n- BottomDialog - 在屏幕底部弹出的对话框\n- SideDialog - 在屏幕左边或右边弹出的对话框\n\n一些简单的对话框\n\n- LoadingDialog - 在屏幕中央显示一个加载动画\n- BottomInputDialog - 在弹框中输入一个文本并返回\n- ActionSheetDialog\n- PickerDialog\n\n## Usage\n\n## Gradle\n\n``` groovy\nrepositories {\n    maven { url \"https://gitee.com/ezy/repo/raw/cosmo/\"}\n}\ndependencies {\n    // AlertDialog扩展(tip/alert/confirm/choose)\n    implementation \"me.reezy.cosmo:dialog-alert:0.10.2\"\n\n    // 自定义对话框(CustomDialog/BottomDialog/DropdownDialog/SideDialog)\n    implementation \"me.reezy.cosmo:dialog-custom:0.10.2\"\n\n    // 一些简单的对话框(LoadingDialog/InputDialog/ActionSheetDialog/PickerDialog)\n    implementation \"me.reezy.cosmo:dialog-simple:0.10.2\"\n}\n```\n\n\n## LICENSE\n\nThe Component is open-sourced software licensed under the [Apache license](LICENSE).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczy1121%2Fdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fdialog/lists"}