{"id":13642305,"url":"https://github.com/LemonITCN/LemonHello4Android","last_synced_at":"2025-04-20T16:31:32.520Z","repository":{"id":105505796,"uuid":"78520497","full_name":"LemonITCN/LemonHello4Android","owner":"LemonITCN","description":"妈妈说，问人问题要先说你好，那么咱这个全平台的理论上做的最牛逼的对话框（只是理论上）就叫LemonHello吧~","archived":false,"fork":false,"pushed_at":"2017-04-02T04:33:50.000Z","size":2318,"stargazers_count":229,"open_issues_count":16,"forks_count":51,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-08-04T00:06:00.742Z","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/LemonITCN.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":"2017-01-10T09:58:09.000Z","updated_at":"2024-08-04T00:06:00.743Z","dependencies_parsed_at":null,"dependency_job_id":"990629f9-edc1-42a7-be84-efc76bf6a575","html_url":"https://github.com/LemonITCN/LemonHello4Android","commit_stats":null,"previous_names":["1em0nsoft/lemonhello4android"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonITCN%2FLemonHello4Android","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonITCN%2FLemonHello4Android/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonITCN%2FLemonHello4Android/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LemonITCN%2FLemonHello4Android/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LemonITCN","download_url":"https://codeload.github.com/LemonITCN/LemonHello4Android/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223832940,"owners_count":17210754,"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:29.683Z","updated_at":"2025-04-20T16:31:32.512Z","avatar_url":"https://github.com/LemonITCN.png","language":"Java","readme":"# LemonHello4Android\n妈妈说，问人问题要先说你好，那么咱这个全平台的理论上做的最牛逼的对话框（只是理论上）就叫LemonHello吧~\n完全可以自定义的UI，内置多种主题提示框。\n\n\u003e 作者：1em0nsOft - LiuRi\n\u003e\n\u003e 版本号：1.0.1\n\u003e\n\u003e 简介：这是一个完全Made in China的炫酷弹出指示层Android版本（-_-#意思就是还有iOS的），他能让你快速的自定义任何样式的弹出框。\n\u003e\n\u003e **意见建议反馈QQ群：370157608 （还寻思啥呢，赶紧加啊！）**\n\n\n\n![效果图](https://raw.githubusercontent.com/1em0nsOft/LemonHello4Android/master/Resource/LemonHello.gif)\n\n\n\n- 怎么样，别光看，我们不妨试试看哦！把LemonHello集成到你的项目中很简单，使用Gradle，首先在你的Project build.gradle文件中（allprojects -\u003erepositories节点）加入如下代码：\n\n```\nallprojects {\n    repositories {\n        jcenter()\n        // 加入下面这行\n        maven { url 'https://jitpack.io' }\n    }\n}\n```\n\n接下来，在你的项目中的Module（xxx e.g:app） build.gradle中（dependencies节点）加入如下代码：\n\n```\ndependencies {\n    // ...  你的其他依赖\n    // 然后加入下面这行\n    compile 'com.github.1em0nsOft:LemonHello4Android:1.0.1'\n}\n```\n\n最后重新build一下就可以啦。\n\n接下来，我们验证一下我们是否集成成功，随便找一个Activity，在onCreate方法里面我们加上如下一段代码来弹出一个对话框试试：\n\n```\nLemonHello.getSuccessHello(\"提示\", \"恭喜您，集成成功！\")\n      .addAction(new LemonHelloAction(\"我知道啦\", new LemonHelloActionDelegate() {\n           @Override\n           public void onClick(LemonHelloView helloView, LemonHelloInfo helloInfo, LemonHelloAction helloAction) {\n                 helloView.hide();\n           }\n       }))\n       .show(MainActivity.this);\n```\n\n运行一下，你就可以看到你使用LemonHello弹出的第一个对话框咯~集成成功！\n\n![集成成功截图](https://raw.githubusercontent.com/1em0nsOft/LemonHello4Android/master/Resource/LemonHelloTest01.png)\n\nLemonBubble默认带了四中样式，就如我们开头展示的动画里面的前四种，不过呢，你可以自定义其他样式，都可以自定义什么属性呢？给大家列一个列表：\n\n```\n// 对话框控件的宽度\nwidth;\n    \n// 对话框控件的圆角半径\ncornerRadius;\n\n// 对话框面板的背景颜色\npanelBackgroundColor;\n    \n// 对话框面板的背景Drawable\npanelBackgroundDrawable;\n\n// 对话框的背景蒙版颜色\nmaskColor;\n\n// 对话框的图标绘制上下文\n// 如果icon属性为空，那么会调用该属性iconPaintContext绘制\n// 如果iconPaintContext为空，那么会认为无图标\niconPaintContext;\n\n// 图标动画是否需要重复\nisIconAnimationRepeat;\n\n// 动画的执行的所需时长\nanimationTime;\n\n// 对话框的图标对象\n// 如果该对象为空，那么会调用iconPaintContext绘制\n// 如果iconPaintContext为空，那么会认为无图标\nicon;\n\n// 图标的宽度\n// 图标为正方形，因此宽度也就是高度\niconWidth;\n\n// 图标的位置描述属性\niconLocation;\n\n// 对话框的标题，如果该属性为null或空字符串，那么认为其没有标题\ntitle;\n\n// 对话框的正文内容文字\ncontent;\n\n// 标题文字的颜色\ntitleColor;\n\n// 对话框正文内容文字颜色\ncontentColor;\n\n// 标题文字的字体大小\ntitleFontSize;\n\n// 对话对征文内容文字字体大小\ncontentFontSize;\n\n// 标题的按钮文字大小\nbuttonFontSize;\n\n// 控件的内边距\npadding;\n\n// 控件的间隙\nspace;\n\n// action按钮的高度\nactionLineHeight;\n\n// 对话框的动画list（按钮说明信息list）\nactions\n\n// 第一行的按钮数量\n// 如果超过这个数量，那么每一个Action都会被放到单独的行中\n// 如果该数值设置为\u003c1的数字，那么认为该值为1\nfirstLineButtonCount;\n\n// 是否显示状态栏\nisShowStatusBar;\n\n// 状态栏的颜色\nstatusBarColor;\n    \n// LemonHello的事件代理\neventDelegate;\n\n// 是否使用消息队列，若您使用了消息队列，那么后通知显示的消息框会在前一个消息框关闭后再显示\nuseMessageQueue\n```\n\n\n\n- 怎么样，够你用吗？我屮艸芔茻，**还不够吗？那你赶紧告诉我，还需要什么场景，我给你加上！！！！**\n\n### LemonBubble是一款纯国产、开源、且有售后的提示框控件！有bug，我来改！有需求，我来加！你负责用就行~  对了，你还有个职责，别忘了点一个star~ \n\n\n\n### **我的废话说完了，你也是不是该来体验一下啦！**","funding_links":[],"categories":["对话框"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLemonITCN%2FLemonHello4Android","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLemonITCN%2FLemonHello4Android","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLemonITCN%2FLemonHello4Android/lists"}