{"id":13642337,"url":"https://github.com/loonggg/BottomSheetPopupDialog","last_synced_at":"2025-04-20T16:31:48.624Z","repository":{"id":70451507,"uuid":"70457638","full_name":"loonggg/BottomSheetPopupDialog","owner":"loonggg","description":"底部弹出框","archived":false,"fork":false,"pushed_at":"2016-10-10T07:45:16.000Z","size":440,"stargazers_count":25,"open_issues_count":0,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-08-03T01:26:10.101Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/loonggg.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}},"created_at":"2016-10-10T06:17:22.000Z","updated_at":"2024-05-11T05:55:53.000Z","dependencies_parsed_at":"2023-03-11T08:37:12.930Z","dependency_job_id":null,"html_url":"https://github.com/loonggg/BottomSheetPopupDialog","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loonggg%2FBottomSheetPopupDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loonggg%2FBottomSheetPopupDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loonggg%2FBottomSheetPopupDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loonggg%2FBottomSheetPopupDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loonggg","download_url":"https://codeload.github.com/loonggg/BottomSheetPopupDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223832968,"owners_count":17210755,"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":[],"created_at":"2024-08-02T01:01:30.125Z","updated_at":"2025-04-20T16:31:48.617Z","avatar_url":"https://github.com/loonggg.png","language":"Java","funding_links":[],"categories":["对话框"],"sub_categories":[],"readme":"# BottomSheetPopupDialog\n这是一个底部弹出框的库。使用方法也非常简单。\n### 效果图，如下：\n![](https://raw.githubusercontent.com/loonggg/BottomSheetPopupDialog/master/image/33.gif)\n### Step 1. Add the JitPack repository to your build file\n\nAdd it in your root build.gradle at the end of repositories:\n```java\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url \"https://jitpack.io\" }\n\t\t}\n\t}\n  ```\n\n### Step 2. Add the dependency\n```java\n\tdependencies {\n\t        compile 'com.github.loonggg:BottomSheetPopupDialog:v1.0'\n\t}\n  ```\n  BottomSheetPopupDialog和官方的 BottomSheetDialog非常相似，用法也非常相似。我们可以自定义dialog的布局，然后获取做相应的操作。\n  ```java\n  View dialogView = LayoutInflater.from(this).inflate(R.layout.share_bottom_dialog, null);\n  ShareBottomPopupDialog shareBottomPopupDialog = new ShareBottomPopupDialog(this, dialogView);\n  shareBottomPopupDialog.showPopup(all_layout);\n  ```\n  share_bottom_dialog.xml就是我们自定义的dialog的布局，然后在new ShareBottomPopupDialog时，放进去即可。然后调用showPopup(View rootview),方法显示。这里的view是所在页面的根布局。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floonggg%2FBottomSheetPopupDialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floonggg%2FBottomSheetPopupDialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floonggg%2FBottomSheetPopupDialog/lists"}