{"id":13644165,"url":"https://github.com/AlexLiuSheng/BadgeView","last_synced_at":"2025-04-21T06:33:15.719Z","repository":{"id":217102615,"uuid":"63388471","full_name":"AlexLiuSheng/BadgeView","owner":"AlexLiuSheng","description":"a BadeView  base on android","archived":false,"fork":false,"pushed_at":"2022-08-13T20:47:25.000Z","size":247,"stargazers_count":730,"open_issues_count":13,"forks_count":110,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-04-04T18:08:51.733Z","etag":null,"topics":["android","badge","badges","badgeview","bindview"],"latest_commit_sha":null,"homepage":null,"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/AlexLiuSheng.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-07-15T03:22:59.000Z","updated_at":"2025-03-27T22:40:38.000Z","dependencies_parsed_at":"2024-01-14T16:04:29.992Z","dependency_job_id":"3e8ba53b-3461-4fa3-9869-c4fbcbd4f047","html_url":"https://github.com/AlexLiuSheng/BadgeView","commit_stats":null,"previous_names":["alexliusheng/badgeview"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLiuSheng%2FBadgeView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLiuSheng%2FBadgeView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLiuSheng%2FBadgeView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexLiuSheng%2FBadgeView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexLiuSheng","download_url":"https://codeload.github.com/AlexLiuSheng/BadgeView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008331,"owners_count":21359967,"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","badge","badges","badgeview","bindview"],"created_at":"2024-08-02T01:01:58.418Z","updated_at":"2025-04-21T06:33:11.095Z","avatar_url":"https://github.com/AlexLiuSheng.png","language":"Java","funding_links":[],"categories":["徽章(Badge)"],"sub_categories":[],"readme":"# BadgeView\na BadeView  base on android\n\n\u003cimg src=\"https://github.com/AlexLiuSheng/BadgeView/blob/master/library/version1.0.5.png\" width=320/\u003e\n\n## include:\n\n      `compile 'com.allenliu.badgeview:library:1.1.1'`（newest）\n## bind like this:\n\n     BadgeFactory.create(this)\n    .setTextColor(Color.White)\n    .setWidthAndHeight(25,25)\n    .setBadgeBackground(Color.Red)\n    .setTextSize(10)\n    .setBadgeGravity(Gravity.Right|Gravity.Top)\n    .setBadgeCount(20)\n    .setShape(BadgeView.SHAPE_CIRCLE)\n    .setSpace(10,10)\n    .bind(view);\n     \nif u want to set space dont use ~~setMargin()~~,use `setSpace` instead.\n## There are some other constructer methods and you can be easy to create your own shape :\n\n    BadgeFactory.createDot(this).setBadgeCount(20).bind(imageView);\n    BadgeFactory.createCircle(this).setBadgeCount(20).bind(imageView);\n    BadgeFactory.createRectangle(this).setBadgeCount(20).bind(imageView);\n    BadgeFactory.createOval(this).setBadgeCount(20).bind(imageView);\n    BadgeFactory.createSquare(this).setBadgeCount(20).bind(imageView);\n    BadgeFactory.createRoundRect(this).setBadgeCount(20).bind(imageView);\n## unbind view just use `unbind` method.\n   \n     badgeView.unbind();\n\n## history version\n  - v1.0.6  \n  add `setMargin`method,using this method you can change the position of badgeview,but the width of bindview or the height of bindview will be changed.see image effect.\n  \n  - v1.1.1\n  add `setSpace`method,it replace origin method `setMargin`.now `setMargin` is a Deprecated method.Use `setSpace` method to set space  between view and badgeview instead.\n\n## License\n        \n        Copyright 2016 AllenLiu.\n\n        Licensed to the Apache Software Foundation (ASF) under one or more contributor\n        license agreements. See the NOTICE file distributed with this work for\n        additional information regarding copyright ownership. The ASF licenses this\n        file to you under the Apache License, Version 2.0 (the \"License\"); you may not\n        use this file except in compliance with the License. You may obtain a copy of\n        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, WITHOUT\n        WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n        License for the specific language governing permissions and limitations under\n        the License.\nwelecome to star,thank you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlexLiuSheng%2FBadgeView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FAlexLiuSheng%2FBadgeView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FAlexLiuSheng%2FBadgeView/lists"}