{"id":13494499,"url":"https://github.com/Hamadakram/AlertView","last_synced_at":"2025-03-28T14:31:18.814Z","repository":{"id":44148220,"uuid":"125224240","full_name":"Hamadakram/AlertView","owner":"Hamadakram","description":"A library to create simple alerts easily with some customization.","archived":false,"fork":false,"pushed_at":"2021-04-19T08:36:37.000Z","size":1132,"stargazers_count":271,"open_issues_count":14,"forks_count":50,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-22T11:04:14.697Z","etag":null,"topics":["alert","alertview","android-library","bottomsheet","dialog","kotlin","kotlin-library"],"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/Hamadakram.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":"2018-03-14T14:19:35.000Z","updated_at":"2024-11-05T22:53:11.000Z","dependencies_parsed_at":"2022-09-22T11:31:09.829Z","dependency_job_id":null,"html_url":"https://github.com/Hamadakram/AlertView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamadakram%2FAlertView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamadakram%2FAlertView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamadakram%2FAlertView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hamadakram%2FAlertView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hamadakram","download_url":"https://codeload.github.com/Hamadakram/AlertView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246045932,"owners_count":20714872,"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":["alert","alertview","android-library","bottomsheet","dialog","kotlin","kotlin-library"],"created_at":"2024-07-31T19:01:25.549Z","updated_at":"2025-03-28T14:31:17.447Z","avatar_url":"https://github.com/Hamadakram.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"# AlertView\nA library to create simple alerts easily with some customization. Written in Kotlin but works for both Kotlin and Java\n\n![](https://github.com/Hamadakram/AlertView/blob/master/art/Banner.png?raw=true)\n## Download\nGrab via Gradle:\n```java\nimplementation 'com.irozon.alertview:alertview:1.0.1'\nimplementation 'com.android.support:design:27.1.0'\n```\n## Usage\n### Kotlin\n```java\nval alert = AlertView(\"Title\", \"Message\", AlertStyle.BOTTOM_SHEET)\nalert.addAction(AlertAction(\"Action 1\", AlertActionStyle.DEFAULT, { action -\u003e\n// Action 1 callback\n}))\nalert.addAction(AlertAction(\"Action 2\", AlertActionStyle.NEGATIVE, { action -\u003e\n// Action 2 callback\n}))\n\nalert.show(this)\n```\n### Java\nUsing Lambda\n```java\nAlertView alert = new AlertView(\"Title\", \"Message\", AlertStyle.BOTTOM_SHEET);\nalert.addAction(new AlertAction(\"Action 1\", AlertActionStyle.DEFAULT, action -\u003e {\n// Action 1 callback\n}));\nalert.addAction(new AlertAction(\"Action 2\", AlertActionStyle.NEGATIVE, action -\u003e {\n// Action 2 callback\n}));\n\nalert.show(this);\n```\n\n## AlertStyle\nThere are three alert styles\n\n![](https://github.com/Hamadakram/AlertView/blob/master/art/Styles.png?raw=true)\n1. ```AlertStyle.BOTTOM_SHEET```\n2. ```AlertStyle.IOS```\n3. ```AlertStyle.DIALOG```\n\n## AlertActionStyle\nThree types of Alert Action button styles\n1. ```AlertActionStyle.POSITIVE```\n2. ```AlertActionStyle.NEGATIVE```\n3. ```AlertActionStyle.DEFAULT```\n\n## Themes\n\n![](https://github.com/Hamadakram/AlertView/blob/master/art/Themes.png?raw=true)\n1. ```AlertTheme.LIGHT```\n2. ```AlertTheme.DARK```\n\nSet theme by\n```java\nalert.setTheme(AlertTheme.DARK)\n```\nDefault theme is LIGHT\n\n## Apps using AlertView\nIf you are using AlertView in your app and would like to be listed here, please let me know by [email](mailto:hamadakram91@gmail.com) or opening a new issue!\n\n## Authors\n\n* **Hammad Akram** - (https://github.com/hamadakram)\n\n## Contribution\nPull requests are welcome! Feel free to browse through open issues to look for things that need work. If you have a feature request or bug, please open a new issue so i can track it.\n## Licence\n```\nCopyright 2018 Irozon, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHamadakram%2FAlertView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FHamadakram%2FAlertView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FHamadakram%2FAlertView/lists"}