{"id":13644853,"url":"https://github.com/anderson9/LovelyToast","last_synced_at":"2025-04-21T10:34:40.442Z","repository":{"id":217102651,"uuid":"69556651","full_name":"anderson9/LovelyToast","owner":"anderson9","description":"Toast，自定义控件，支持自定义动画，内置6种类型3种动画。","archived":false,"fork":false,"pushed_at":"2018-05-25T09:14:57.000Z","size":1754,"stargazers_count":60,"open_issues_count":1,"forks_count":18,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-09T17:42:27.398Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/anderson9.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-09-29T10:20:30.000Z","updated_at":"2024-08-11T17:58:36.000Z","dependencies_parsed_at":"2024-01-14T16:05:52.891Z","dependency_job_id":"ac901864-cb16-4f22-9d40-c0dd238cc61d","html_url":"https://github.com/anderson9/LovelyToast","commit_stats":null,"previous_names":["anderson9/lovelytoast"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderson9%2FLovelyToast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderson9%2FLovelyToast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderson9%2FLovelyToast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anderson9%2FLovelyToast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anderson9","download_url":"https://codeload.github.com/anderson9/LovelyToast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250040911,"owners_count":21365180,"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:02:16.010Z","updated_at":"2025-04-21T10:34:35.428Z","avatar_url":"https://github.com/anderson9.png","language":"Java","funding_links":[],"categories":["Toast"],"sub_categories":[],"readme":"### LovelyToast\nMake u Toast become lovely and alive,\n* 6 kinds of types(6种的toast类型)\n* 3 kinds of show and out animation（3种显示与取消的动画） support custom（支持自定义添加更多）\n* 2 kinds of animation location(可选2种动画位置)\n* support fast click ，cancel previous animation automatically(支持快速点击，自定取消上次动画)\n* listen homekey to cancel Toast.(内部作了home键的监听取消Toast)\n\n\n### preview\n![gif](https://github.com/anderson9/LovelyToast/blob/master/gif/3anim.gif)\n![gif](https://github.com/anderson9/LovelyToast/blob/master/gif/6type.gif)\n![gif](https://github.com/anderson9/LovelyToast/blob/master/gif/quickclick.gif)\n![gif](https://github.com/anderson9/LovelyToast/blob/master/gif/left_or_right.gif)\n\n### Dependency(引入)\n\n```\ndependencies {\n\tcompile 'com.ljs.lovelytoast:LovelyToast:1.0.0'\n}\n```\n### This Demo\n[this demo download](http://download.csdn.net/detail/luojiusan520/9643109)\n\n### Usage （用法）\n\n``` java\nLovelyToast.makeText(mActivity.this, \" SUCCESS!!\", LovelyToast.LENGTH_SHORT,\n                        LovelyToast.SUCCESS);\n\nLovelyToast.makeText(mActivity.this, \" Hi guys !\",LovelyToast.LENGTH_SHORT , LovelyToast.SUCCESS, LovelyToast.SCALE , LovelyToast.RIGHT);\n```\n**public static void makeText(Context context, String msg, int length, int type, @Nullable int showanim, @Nullable int leftorright)**\n\n\n\n\n\n#### parms\n\ntype :(六种Toast类型分别)\n- LovelyToast.SUCCESS,\n- LovelyToast.WARNING,\n- LovelyToast.ERROR，\n- LovelyToast.CONFUSING，\n- LovelyToast..INFO，\n- LovelyToast.DEFAULT。\n\nshowanim :（三种Toast展示动画）\n-  LovelyToast.SCALE\n-  LovelyToast.TOP_DOWN\n-  LovelyToast.LEFT_RIGHT\n-  custom style,（可以自定义）\n- null=native anim;（不填默认原生动画）\n\nleftorright:(二种动画位置)\n- LovelyToast.LEFT\n- LovelyToast.RIGHT\n- null=LovelyToast.LEFT（不填默认左边动画）\n\n#### custom style\n``` java\nLovelyToast.makeText(mActivity.this, \" hi guys\",LovelyToast.LENGTH_SHORT, LovelyToast.SUCCESS, R.style.customanim , LovelyToast.RIGHT)\n//引用自定义写的toast展示与退出动画，必须是R.style下的文件\n\u003cstyle name=\"customanim\"\u003e\n        \u003citem name=\"android:windowEnterAnimation\"\u003e@anim/toast_enter\u003c/item\u003e\n        \u003citem name=\"android:windowExitAnimation\"\u003e@anim/toast_out\u003c/item\u003e\n    \u003c/style\u003e\n```\n\n### Thanks\n[https://github.com/geftimov/android-pathview](https://github.com/geftimov/android-pathview)\n\n###Contributors\nI want to update this Toast and make it better. So any help will be appreciated. Make and pull - request and we can discuss it.\n### Licence\nThis Licence,\ndon't need a Public Licence!i don't care!\nIf u like the LovelyToast,\ngive me a star,\ndon't be such a dick,\nu just do what u want to do.\n（不需要licence，大家想怎么用怎么用，给个star即可，thanks！！ ）\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanderson9%2FLovelyToast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanderson9%2FLovelyToast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanderson9%2FLovelyToast/lists"}