{"id":13642234,"url":"https://github.com/shaohui10086/BottomDialog","last_synced_at":"2025-04-20T16:31:05.723Z","repository":{"id":95792907,"uuid":"70575655","full_name":"shaohui10086/BottomDialog","owner":"shaohui10086","description":"BottomDialog is a bottom dialog layout implemented with DialogFragment, Supports pop-up animation, Support any layout","archived":false,"fork":false,"pushed_at":"2017-04-10T14:41:00.000Z","size":1011,"stargazers_count":1271,"open_issues_count":12,"forks_count":182,"subscribers_count":32,"default_branch":"master","last_synced_at":"2024-10-30T02:37:05.675Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://shaohui.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/shaohui10086.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}},"created_at":"2016-10-11T09:04:21.000Z","updated_at":"2024-10-24T00:27:54.000Z","dependencies_parsed_at":"2023-03-07T07:01:17.201Z","dependency_job_id":null,"html_url":"https://github.com/shaohui10086/BottomDialog","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaohui10086%2FBottomDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaohui10086%2FBottomDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaohui10086%2FBottomDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaohui10086%2FBottomDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaohui10086","download_url":"https://codeload.github.com/shaohui10086/BottomDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223238140,"owners_count":17111362,"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:28.817Z","updated_at":"2025-04-20T16:31:05.707Z","avatar_url":"https://github.com/shaohui10086.png","language":"Java","readme":"# BottomDialog\n[![build](https://img.shields.io/badge/build-1.1.9-brightgreen.svg?maxAge=2592000)](https://bintray.com/shaohui/maven/BottomDialog)\n[![license](https://img.shields.io/badge/license-Apache%202-blue.svg?maxAge=2592000)](https://github.com/shaohui10086/BottomDialog/blob/master/LICENSE)\n\n[中文版](/README_ZH.md)\n\n\n`BottomDialog` is a bottom dialog layout implemented with `DialogFragment`，And supports pop-up animation, support any layout\n\n## Preview\n![BottomDialogShare](/preview/bottom_dialog_share.gif)\n![BottomDialogShare](/preview/bottom_dialog_edit.gif)\n## Import\n\nMaven\n\n    \u003cdependency\u003e\n      \u003cgroupId\u003eme.shaohui\u003c/groupId\u003e\n      \u003cartifactId\u003ebottomdialog\u003c/artifactId\u003e\n      \u003cversion\u003e1.1.9\u003c/version\u003e\n      \u003ctype\u003epom\u003c/type\u003e\n    \u003c/dependency\u003e\n    \nor Gradle\n\n\tcompile 'me.shaohui:bottomdialog:1.1.9'\n\n## Uasge\n\nYou can use `BottomDialog` in two different ways ：\n\n### 1.Use directly `BottomDialog`\n\nA simple three lines of code can be done:\n    \n    BottomDialog.create(getSupportFragmentManager())\n                    .setLayoutRes(R.layout.dialog_layout)      // dialog layout\n                    .show();\n                    \nOf course, you can also make simple settings:\n\n    BottomDialog.create(getSupportFragmentManager())\n                    .setViewListener(new BottomDialog.ViewListener() {    \n                        @Override\n                        public void bindView(View v) {\n                            // // You can do any of the necessary the operation with the view\n                        }\n                    })\n                    .setLayoutRes(R.layout.dialog_layout)  \n                    .setDimAmount(0.1f)            // Dialog window dim amount(can change window background color）, range：0 to 1，default is : 0.2f\n                    .setCancelOutside(false)     // click the external area whether is closed, default is : true\n                    .setTag(\"BottomDialog\")     // setting the DialogFragment tag\n                    .show();\n\nSo Easy！\n\n### 2.or extends `BaseBottomDialog` to use\n\nFirst of all, according to your needs to define a class，extends `BaseBottomDialog`，For example below `ShareBottomDialog`\n    \n    public class ShareBottomDialog extends BaseBottomDialog{\n    \n        @Override\n        public int getLayoutRes() {\n            return R.layout.dialog_layout;\n        }\n    \n        @Override\n        public void bindView(View v) {\n            // do any thing you want\n        }\n    }\n\nSo simple, only two abstract methods needed to achieve, the rest is to add your logic. Of course, you can also rewrite some of the necessary methods to meet your needs, You can manipulate this Dialog as you would a Fragment\n\n    int getHeight()                 // return your bottomDialog height\n\n    float getDimAmount()            // set dialog dim amount（can change window background color）, default is 0.2f\n\n    boolean getCancelOutside()      // click the external area whether is closed, default is : true\n\n    String getFragmentTag()         // set dialogFragment tag\n\nThe rest is use it：\n\n        ShareBottomDialog dialog = new ShareBottomDialog();\n        dialog.show(getFragmentManager());\n\nThat is all！\n\n## Issue\n\nIf you are in the process of using, encountered any problems, welcome to put forward issue\n\n## License\n\n    Copyright 2016 shaohui10086\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\t\n \n \n","funding_links":[],"categories":["对话框"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaohui10086%2FBottomDialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaohui10086%2FBottomDialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaohui10086%2FBottomDialog/lists"}