{"id":19786615,"url":"https://github.com/mejdi14/flat-dialog-android","last_synced_at":"2025-04-30T23:32:34.087Z","repository":{"id":35436241,"uuid":"214803540","full_name":"mejdi14/Flat-Dialog-Android","owner":"mejdi14","description":"📱Android Library to implement beautiful dialogs in android apps easily","archived":false,"fork":false,"pushed_at":"2022-09-27T22:37:39.000Z","size":2240,"stargazers_count":161,"open_issues_count":2,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-31T16:47:12.638Z","etag":null,"topics":["android","android-library","android-ui","design","dialog","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Java","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/mejdi14.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}},"created_at":"2019-10-13T10:52:45.000Z","updated_at":"2024-08-05T10:12:29.000Z","dependencies_parsed_at":"2023-01-15T21:11:33.080Z","dependency_job_id":null,"html_url":"https://github.com/mejdi14/Flat-Dialog-Android","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejdi14%2FFlat-Dialog-Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejdi14%2FFlat-Dialog-Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejdi14%2FFlat-Dialog-Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mejdi14%2FFlat-Dialog-Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mejdi14","download_url":"https://codeload.github.com/mejdi14/Flat-Dialog-Android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224225908,"owners_count":17276571,"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","android-library","android-ui","design","dialog","hacktoberfest"],"created_at":"2024-11-12T06:18:49.458Z","updated_at":"2024-11-12T06:18:50.042Z","avatar_url":"https://github.com/mejdi14.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flat-Dialog\n\n\n[![platform](https://img.shields.io/badge/platform-Android-yellow.svg)](https://www.android.com)\n[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![](https://jitpack.io/v/mejdi14/Flat-Dialog-Android.svg)](https://jitpack.io/#mejdi14/Flat-Dialog-Android)\n \u003ca href=\"https://github.com/frinyvonnick/gitmoji-changelog\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/API-15%2B-blue.svg?style=flat\" alt=\"gitmoji-changelog\"\u003e\n  \u003c/a\u003e\n\u003cp align=\"center\"\u003e\n\u003cimg src=\"https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/flatdialog.png\" height=\"300\" width=\"300\" \u003e\n\t\u003c/p\u003e\n\n## Installation\nAdd this in your root `build.gradle` file (**not** your module `build.gradle` file):\n\n```gradle\nallprojects {\n\trepositories {\n\t\t...\n\t\tmaven { url \"https://jitpack.io\" }\n\t}\n}\n``` \n## Dependency\n\nAdd this to your module's `build.gradle` file (make sure the version matches the JitPack badge above):\n\n```gradle\ndependencies {\n\t...\n\timplementation 'com.github.mejdi14:Flat-Dialog-Android:1.0.5'\n}\n```\n\n## Screenshots\n\u003cimg src=\"https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image1.jpg\" height=\"580\" width=\"260\" hspace=\"20\"\u003e\u003cimg src=\"https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image2.jpg\" height=\"580\" width=\"260\" hspace=\"20\"\u003e\u003cimg src=\"https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image3.jpg\" height=\"580\" width=\"260\"\u003e\n\u003cimg src=\"https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image4.jpg\" height=\"580\" width=\"260\" hspace=\"20\"\u003e\u003cimg src=\"https://github.com/mejdi14/Flat-Dialog-Android/blob/master/screenshots/image5.jpg\" height=\"580\" width=\"260\" hspace=\"20\"\u003e\n\n## How to use with java\n\n``` java\n final FlatDialog flatDialog = new FlatDialog(ExempleActivity.this);\n        flatDialog.setTitle(\"Login\")\n                .setSubtitle(\"write your profile info here\")\n                .setFirstTextFieldHint(\"email\")\n                .setSecondTextFieldHint(\"password\")\n                .setFirstButtonText(\"CONNECT\")\n                .setSecondButtonText(\"CANCEL\")\n                .withFirstButtonListner(new View.OnClickListener() {\n                    @Override\n                    public void onClick(View view) {\n                        Toast.makeText(ExempleActivity.this, flatDialog.getFirstTextField(), Toast.LENGTH_SHORT).show();\n                    }\n                })\n                .withSecondButtonListner(new View.OnClickListener() {\n                    @Override\n                    public void onClick(View view) {\n                        flatDialog.dismiss();\n                    }\n                })\n                .show();\n```\n\n## How to use with kotlin\n\n``` java\n   val flatDialog = FlatDialog(this@MainActivity)\n        flatDialog.setTitle(\"Login\")\n            .setSubtitle(\"write your profile info here\")\n            .setFirstTextFieldHint(\"email\")\n            .setSecondTextFieldHint(\"password\")\n            .setFirstButtonText(\"CONNECT\")\n            .setSecondButtonText(\"CANCEL\")\n            .withFirstButtonListner {\n                 // do something ...\n                }\n            .withSecondButtonListner {\n                    flatDialog.dismiss()\n            }\n            .show()\n```\n\n\n\n## More useful methods\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eMethod\u003c/th\u003e\n    \u003cth\u003eDescription\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eisCancelable(boolean)\u003c/td\u003e\n    \u003ctd\u003eDefine if you want to close dialog when you click outside\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003esetIcon(image)\u003c/td\u003e\n    \u003ctd\u003eAdd an image at the top of the dialog\u003c/td\u003e\n  \u003c/tr\u003e\n\t  \u003ctr\u003e\n    \u003ctd\u003esetBackgroundColor(color)\u003c/td\u003e\n    \u003ctd\u003eChange the dialog background color\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003esetFirstTextFieldHint(String)\u003c/td\u003e\n    \u003ctd\u003eSet a hint for the edittext\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003esetFirstTextFieldTextColor(color)\u003c/td\u003e\n    \u003ctd\u003eSet the edittext text color\u003cbr\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003esetFirstTextFieldBorderColor(color)\u003c/td\u003e\n    \u003ctd\u003eSet the border color for the edittext\u003c/td\u003e\n  \u003c/tr\u003e\n\t \u003ctr\u003e\n    \u003ctd\u003esetFirstTextFieldInputType(type)\u003c/td\u003e\n    \u003ctd\u003eSet the input type for the edittext\u003c/td\u003e\n  \u003c/tr\u003e\n\t\t \u003ctr\u003e\n    \u003ctd\u003esetFirstButtonColor(color)\u003c/td\u003e\n    \u003ctd\u003eSet the button background color\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\n\n## Contributing\n\nAny contributions, large or small, major features, bug fixes, are welcomed and appreciated\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmejdi14%2Fflat-dialog-android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmejdi14%2Fflat-dialog-android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmejdi14%2Fflat-dialog-android/lists"}