{"id":13642287,"url":"https://github.com/jiang111/IndicatorDialog","last_synced_at":"2025-04-20T16:31:22.907Z","repository":{"id":21105188,"uuid":"91709453","full_name":"jiang111/IndicatorDialog","owner":"jiang111","description":"a dialog with arrow indicator in the location where you want","archived":false,"fork":false,"pushed_at":"2022-02-18T02:58:07.000Z","size":8320,"stargazers_count":485,"open_issues_count":2,"forks_count":75,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-10-04T18:03:46.799Z","etag":null,"topics":["alertdialog","android","dialog","indicator","recyclerview"],"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/jiang111.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}},"created_at":"2017-05-18T15:27:47.000Z","updated_at":"2024-09-29T08:41:23.000Z","dependencies_parsed_at":"2022-07-27T01:47:01.996Z","dependency_job_id":null,"html_url":"https://github.com/jiang111/IndicatorDialog","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FIndicatorDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FIndicatorDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FIndicatorDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jiang111%2FIndicatorDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jiang111","download_url":"https://codeload.github.com/jiang111/IndicatorDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223832920,"owners_count":17210747,"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":["alertdialog","android","dialog","indicator","recyclerview"],"created_at":"2024-08-02T01:01:29.448Z","updated_at":"2025-04-20T16:31:22.897Z","avatar_url":"https://github.com/jiang111.png","language":"Java","readme":"# IndicatorDialog\na dialog with arrow indicator in the location where you want [minSdkVersion 9] \u003cbr /\u003e\n[download apk](https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/app.apk)\n\n[![](https://jitpack.io/v/jiang111/IndicatorDialog.svg)](https://jitpack.io/#jiang111/IndicatorDialog)\n\n\n### Demo:\n\n\u003cp\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/left_1.png\" width=\"120\" height=\"230\" alt=\"\"  /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/l2.png\"  width=\"120\" height=\"230\" alt=\"\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/l3.png\" width=\"120\" height=\"230\" alt=\"\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/d1.png\"  width=\"120\" height=\"230\" alt=\"\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/d2.png\"  width=\"120\" height=\"230\" alt=\"\" /\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/d3.png\"  width=\"120\" height=\"230\" alt=\"\" /\u003e\n\u003c/p\u003e\n\n\n### Depend:\nStep 1. Add the JitPack repository to your build file\nAdd it in your root build.gradle at the end of repositories:\n```\nallprojects {\n    repositories {\n\t...\n\tmaven { url 'https://jitpack.io' }\n    }\n}\n```\nStep 2. Add the dependency [![](https://jitpack.io/v/jiang111/IndicatorDialog.svg)](https://jitpack.io/#jiang111/IndicatorDialog)\n\n```\ndependencies {\n    compile 'com.github.jiang111:IndicatorDialog:2.1.0'\n}\n```\n\n### Usage:\n最终内部是通过RecyclerView来实现,详细用法请参考 \n[see the demo](https://github.com/jiang111/IndicatorDialog/blob/master/app/src/main/java/com/jiang/android/indicatordialogdemo/MainActivity.java) or [download apk](https://raw.githubusercontent.com/jiang111/IndicatorDialog/master/art/app.apk)\n\n```\n\nIndicatorDialog dialog = new IndicatorBuilder(this)  //must be activity\n                .width(dp2px(400))                      \n                .height(-1)                        \n                .animator(R.style.dialog_exit) \n                .ArrowDirection(IndicatorBuilder.BOTTOM)     \n\t\t.bgColor(Color.parseColor(\"#49484b\"))  \n                .dimEnabled(true)                     \n                .gravity(GRAVITY_LEFT)                \n                .radius(8)                            \n                .ArrowRectage(0.2f)                  \n                .layoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false))  //the LayoutManager of RecyclerView\n                .adapter(adapter)\n\t\t.create();           \ndialog.setCanceledOnTouchOutside(true);               \ndialog.show(v);                                                                     \ndialog.dismiss();                                    \ndialog.getDialog();                                 \n\n\n//方法解释\n\nwidth()     //宽,单位px,必填\nheight()    //高,单位px,推荐传-1 可以自动适配\nArrowDirection()   //箭头方向 TOP BOTTOM LEFT RIGHT\nbgColor()          //背景颜色\ndimEnabled()      //背景模糊,默认true\ngravity()         //对话框的权重 GRAVITY_LEFT  GRAVITY_RIGHT  GRAVITY_CENTER\nradius()          //圆角\nArrowRectage()    //箭头距离左边或者右边的偏移量 取值 0-1, 左右依据gravity来判断是左边偏移还是右边\n\n//高级方法\nanimator()  //dialog显示消失的动画\narrowDrawable()   //自定义箭头样式,可以自定义成任何形状\n\ndialog.show(v,x,y);    //x为向左右偏移,y为上下偏移   \n\n```\n\n\n### Other\n If you found this library helpful or you learned something today and want to thank me, [buying me a cup of ☕️  with paypal](https://www.paypal.me/jyuesong) \u003cbr /\u003e\u003cbr /\u003e\n![](https://raw.githubusercontent.com/jiang111/RxJavaApp/master/qrcode/wechat_alipay.png)\n\n\n### License\n\n    Copyright 2016 NewTab\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n        http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n\n","funding_links":["https://www.paypal.me/jyuesong"],"categories":["对话框"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiang111%2FIndicatorDialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjiang111%2FIndicatorDialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjiang111%2FIndicatorDialog/lists"}