{"id":13396078,"url":"https://github.com/Quatja/Vorolay","last_synced_at":"2025-03-13T22:31:39.537Z","repository":{"id":45724745,"uuid":"77673168","full_name":"Quatja/Vorolay","owner":"Quatja","description":"VoronoiView is a view (ViewGroup) that allows you to add and display views inside Voronoi diagram regions.","archived":false,"fork":false,"pushed_at":"2019-02-11T11:49:28.000Z","size":2554,"stargazers_count":923,"open_issues_count":7,"forks_count":127,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-07-31T18:16:28.096Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Quatja.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":"2016-12-30T08:33:59.000Z","updated_at":"2024-07-16T05:43:59.000Z","dependencies_parsed_at":"2022-09-14T09:41:02.694Z","dependency_job_id":null,"html_url":"https://github.com/Quatja/Vorolay","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quatja%2FVorolay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quatja%2FVorolay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quatja%2FVorolay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Quatja%2FVorolay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Quatja","download_url":"https://codeload.github.com/Quatja/Vorolay/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243493805,"owners_count":20299721,"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-07-30T18:00:39.216Z","updated_at":"2025-03-13T22:31:39.021Z","avatar_url":"https://github.com/Quatja.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Index"],"sub_categories":[],"readme":"# Vorolay\n\n[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0)\n[![](https://jitpack.io/v/Quatja/Vorolay.svg)](https://jitpack.io/#Quatja/Vorolay)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Vorolay-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5001)\n\u003cbr\u003e\n\u003cbr\u003e\nVoronoiView is a view (ViewGroup) that allows you to add and display views inside Voronoi diagram regions. [Voronoi diagram] (https://en.wikipedia.org/wiki/Voronoi_diagram)\n\n\n## Screenshots\n![alt text](https://github.com/Quatja/Vorolay/raw/master/Screenshots/screenshot_1.png \"Simple diagram\")\n![alt text](https://github.com/Quatja/Vorolay/raw/master/Screenshots/screenshot_2.png \"Settings\")\n![alt text](https://github.com/Quatja/Vorolay/raw/master/Screenshots/screenshot_3.png \"List view\")\n![alt text](https://github.com/Quatja/Vorolay/raw/master/Screenshots/screenshot_4.png \"Custom views\")\n\n\n\n## Import\nStep 1. Add the JitPack repository to your build file\n\nAdd it in your root build.gradle at the end of repositories:\n\n\tallprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\nStep 2. Add the dependency\n\n\tdependencies {\n\t        compile 'com.github.Quatja:Vorolay:1.0.1'\n\t}\n\n\u003cbr\u003e\n---------\n\n## Usage\n\nAdd the view into your layout. You can customize it by using xml attributes\n\n```xml\n\u003cquatja.com.vorolay.VoronoiView\n  android:layout_width=\"match_parent\"\n  android:layout_height=\"match_parent\"\n  android:layout_margin=\"50dp\"\n  custom:border_color=\"@color/gray\"\n  custom:border_round=\"false\"\n  custom:border_width=\"5\"    /\u003e\n```\n\nThen add your views to the VoronoiView\n\n```java\nVoronoiView voronoiView = (VoronoiView) findViewById(R.id.voronoi);\nLayoutInflater layoutInflater = getLayoutInflater();\nfor (int i = 0; i \u003c 15; i++) {\n    View view = layoutInflater.inflate(R.layout.item_voronoi, null, false);\n    voronoiView.addView(view);\n}\n```\n\nNow VoronoiView children will be displayed inside the diagram regions.\n\n\n\n\n\u003cbr\u003e\n---------\n\n## Customization\n\nAttributes which you can use in customization purposes\n\n| attr            | value/example  | description                                   |\n| --------------- |:--------------:| ---------------------------------------------:|\n| show_border     | true           | shows or hides each region borders            |\n| border_color    | #fff           | sets all borders color                        |\n| border_width    | 5              | sets borders width                            |\n| border_round    | true           | makes border corners round                    |\n| generation_type | random         | sets different points generation behavior     |\n\n\n### Generation types\n| type            | description                                                               |\n| --------------- | -------------------------------------------------------------------------:|\n| random          | VoronoiView generates a random point positions inside the view bounds.    |\n| ordered         | points are placed like a table - rows and columns.                        |\n| custom          | points will be placed in user defined positions.                          |\n\nThese attributes are available programmatically too.\n\u003cbr\u003e\n\n\n\n---------\n\n## Warning\nChildren visibility GONE doesn't work \u003cbr\u003e\nDo not use tags for the children \u003cbr\u003e\n\n\n\n\n---------\n\n## Acknowledgements\nSteven Fortune - algorithm author \u003cbr\u003e\nZhenyu Pan - Forutne algorithm Java version \u003cbr\u003e\nBart Kiers - Graham Scan realization \u003cbr\u003e\n\n\n---------\n\n## License\n```xml\nCopyright 2016 Daniil Jurjev\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%2FQuatja%2FVorolay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FQuatja%2FVorolay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FQuatja%2FVorolay/lists"}