{"id":13789590,"url":"https://github.com/AleksRychkov/tag-sphere","last_synced_at":"2025-05-12T07:30:55.681Z","repository":{"id":53629487,"uuid":"256971788","full_name":"AleksRychkov/tag-sphere","owner":"AleksRychkov","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-30T14:50:20.000Z","size":47111,"stargazers_count":187,"open_issues_count":3,"forks_count":43,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-18T04:34:08.238Z","etag":null,"topics":["android","android-animation","android-kotlin","android-library","animation","customviews","kotlin","tagsphere"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/AleksRychkov.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":"2020-04-19T10:30:45.000Z","updated_at":"2024-09-16T09:55:53.000Z","dependencies_parsed_at":"2024-05-03T19:09:20.825Z","dependency_job_id":null,"html_url":"https://github.com/AleksRychkov/tag-sphere","commit_stats":null,"previous_names":["aleksrychkov/tag-sphere","magic-goop/tag-sphere"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksRychkov%2Ftag-sphere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksRychkov%2Ftag-sphere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksRychkov%2Ftag-sphere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AleksRychkov%2Ftag-sphere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AleksRychkov","download_url":"https://codeload.github.com/AleksRychkov/tag-sphere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253695034,"owners_count":21948803,"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":["android","android-animation","android-kotlin","android-library","animation","customviews","kotlin","tagsphere"],"created_at":"2024-08-03T22:00:29.133Z","updated_at":"2025-05-12T07:30:52.769Z","avatar_url":"https://github.com/AleksRychkov.png","language":"Kotlin","funding_links":[],"categories":["Index"],"sub_categories":[],"readme":"# [Currently unmaintained]\n\n# Tag Sphere View\n\n![Preview-logo](https://raw.githubusercontent.com/magic-goop/tag-sphere/master/art/logo.gif)\n\n## Overview  \n\nAn Android library to implement an animated tag sphere\n\n- **API SDK 21+**\n- **Written in [Kotlin](https://kotlinlang.org)**\n- **Supports customization**\n\n\n## Dependency  \n\nAdd this in your root build.gradle file:\n```groovy\nallprojects {\n\trepositories {\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\nThen, add the library to your module build.gradle:\n\n```groovy\ndependencies {\n    implementation 'com.github.magic-goop:tag-sphere:LATEST.RELEASE.HERE'\n}\n```\n\n## Usage  \n\nAdd widget in your xml layout like this:\n```xml\n\u003ccom.magicgoop.tagsphere.TagSphereView\n    android:id=\"@+id/tagView\"    \n    android:layout_width=\"match_parent\"\n    android:layout_height=\"match_parent\" /\u003e\n```\n\nIn code add list of tags you want to display:\n```java\n(0..40).map {\n  TextTagItem(text = \"Some text $it\")\n}.toList().let {\n  tagView.addTagList(it)\n}\n```\n\nYou can change text appearance via:\n```java\ntagView.setTextPaint(\n  TextPaint().apply {\n    isAntiAlias = true\n    textSize = resources.getDimension(R.dimen.tag_text_size)\n    color = Color.DKGRAY\n  }\n)\n```\n###### Note: ```.setTextPaint``` should be called before setting tags list\n\n## Library supports different types of customization   \n\n![Preview-demo](https://raw.githubusercontent.com/magic-goop/tag-sphere/master/art/demo.gif)  \n\n| Xml                         | Code                                                    | Notes                                                                                              |\n| --------------------------- |:-------------------------------------------------------:| --------------------------------------------------------------------------------------------------:|\n| app:radius=\"1.5\"            | tagView.setRadius(1.5f)                                 | Radius of sphere. Bigger value is then lesser radius will be. Value limited from 1f to 10f         |\n| app:touchSensitivity=\"5\"    | tagView.setTouchSensitivity(5)                          | Touch sensitivity. Bigger value is then slower sphere will be rotated. Value limited from 1 to 100 |\n| app:rotateOnTouch=\"false\"   | tagView.rotateOnTouch(false)                            |  Allow rotate sphere on touch                                                                      |\n| app:easingFunction=\"easeIn\" | tagView.setEasingFunction { EasingFunction.easeIn(it) } | Specifies easing function to control how tags are drawn in relation of z coordinate.               |\n\n\nSet next listeners to get click callbacks:  \n```java\ntagView.setOnLongPressedListener(this)\ntagView.setOnTagTapListener(this)\n```\n\nFor more information checkout [example](https://github.com/magic-goop/tag-sphere/tree/master/example) project in repository.\n\n## Limitations\n\nAll drawing and computation done on UI thread hence there could be frames drops on slow devices or with big amount of objects to render.\n\n\n## Issues\nIf you find any problems or would like to suggest a feature, please feel free to file an [issue](https://github.com/magic-goop/tag-sphere/issues)\n\n## Some examples of what you can do with this library  \n\nShowcase 1                 |  Showcase 2              |  Showcase 3              |\n:-------------------------:|:------------------------:|:------------------------:|\n![](https://raw.githubusercontent.com/magic-goop/tag-sphere/master/art/showcase1.gif)    | ![](https://raw.githubusercontent.com/magic-goop/tag-sphere/master/art/showcase2.gif)  | ![](https://raw.githubusercontent.com/magic-goop/tag-sphere/master/art/showcase3.gif)  |\n\n## License\n\n    Copyright 2020 Alexander Rychkov\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAleksRychkov%2Ftag-sphere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAleksRychkov%2Ftag-sphere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAleksRychkov%2Ftag-sphere/lists"}