{"id":18000761,"url":"https://github.com/norbert515/dropdownwarning","last_synced_at":"2025-05-02T17:31:12.245Z","repository":{"id":97227813,"uuid":"67405222","full_name":"Norbert515/DropDownWarning","owner":"Norbert515","description":"Drop down message","archived":false,"fork":false,"pushed_at":"2017-05-29T07:17:35.000Z","size":381,"stargazers_count":249,"open_issues_count":0,"forks_count":40,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-30T00:37:03.424Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Norbert515.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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}},"created_at":"2016-09-05T09:02:33.000Z","updated_at":"2023-08-03T07:23:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"d2164222-f0e1-4f25-a06a-6e87f15d36cf","html_url":"https://github.com/Norbert515/DropDownWarning","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/Norbert515%2FDropDownWarning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Norbert515%2FDropDownWarning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Norbert515%2FDropDownWarning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Norbert515%2FDropDownWarning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Norbert515","download_url":"https://codeload.github.com/Norbert515/DropDownWarning/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224324514,"owners_count":17292521,"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-10-29T23:13:56.837Z","updated_at":"2024-11-12T18:04:22.755Z","avatar_url":"https://github.com/Norbert515.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DropDownWarning\nEasy to implemente drop down warning/ message\n\n\u003cimg src=\"gif/bounce.gif\" width=\"200\"\u003e\n\u003cimg src=\"gif/standart.gif\" width=\"200\"\u003e\n\n# Installation\n\n[Download the .aar file](https://github.com/Brudigem/DropDownWarning/raw/master/dropdownwarninglibrary-release.aar)\n\nGo to *File* -\u003e *New* -\u003e *New Module* -\u003e *Import .Jar/.AAR Package*\n\nAdd this to your dependecies\n```\ndependecies{\n    compile project (\":dropdownwarninglibrary-release\")\n}\n\n```\n\nOr simply include \n```\nallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n```\nin your project gradle and then:\n```\ndependencies {\n\t        compile 'com.github.Norbert515:DropDownWarning:-SNAPSHOT'\n\t}\n```\n\n# Code\n\n\nFirst you need the top level Layout (most of the times it's a relative layout), you will need to give it an id in the XML.\n\n```\nRelativeLayout rootView = (RelativeLayout) findViewById(R.id.rootView);\n```\nNext you need to create a DropDownWarning.Builder\n\n###Builder\n```\nDropDownWarning dropDownWarning = new DropDownWarning.Builder(Context context, ViewGroup parent)\n\n    .interpolatorIn(Interpolator interpolator) //Intepolator used for the \"show\" animation\n    \n    .interpolatorOut(Interpolator interpolator) //Interpolator used for the \"hide\" animation\n    \n    .animationLength(int length) //Lenght of the animation in ms\n    \n    .textHeight(int height) //Height of the text view\n    \n    .message(String message) //Message to display\n    \n    .foregroundColor(int color) //Color of the text in argb\n    \n    .backgroundColor(int color) //Color of the background in argb\n    \n    .build() //return DropDownWarning\n```\n\n\nTo display the warning you need to call:\n```\ndropDownWarning.show()\n```\nand to hide it:\n```\ndropDownWarning.hide()\n```\n\n#License\n```\nMIT License\n\nCopyright (c) 2016 Norbert Kozsir\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorbert515%2Fdropdownwarning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnorbert515%2Fdropdownwarning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnorbert515%2Fdropdownwarning/lists"}