{"id":13644167,"url":"https://github.com/czy1121/badgebutton","last_synced_at":"2025-04-21T06:33:15.871Z","repository":{"id":199057577,"uuid":"71846996","full_name":"czy1121/badgebutton","owner":"czy1121","description":"带有徽标(数字，小红点)的按钮","archived":true,"fork":false,"pushed_at":"2017-01-26T12:00:37.000Z","size":203,"stargazers_count":432,"open_issues_count":3,"forks_count":82,"subscribers_count":15,"default_branch":"master","last_synced_at":"2024-11-09T16:43:57.487Z","etag":null,"topics":["badge","button"],"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/czy1121.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}},"created_at":"2016-10-25T01:21:35.000Z","updated_at":"2024-08-02T07:34:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"acce229e-a690-4c58-9053-b51d0b0a6cc4","html_url":"https://github.com/czy1121/badgebutton","commit_stats":null,"previous_names":["czy1121/badgebutton"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fbadgebutton","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fbadgebutton/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fbadgebutton/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fbadgebutton/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czy1121","download_url":"https://codeload.github.com/czy1121/badgebutton/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250008334,"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":["badge","button"],"created_at":"2024-08-02T01:01:58.465Z","updated_at":"2025-04-21T06:33:12.115Z","avatar_url":"https://github.com/czy1121.png","language":"Java","readme":"# BadgeButton [![](https://jitpack.io/v/czy1121/badgebutton.svg)](https://jitpack.io/#czy1121/badgebutton)\n \n带有徽标(数字，小红点)的按钮\n\n![badgebutton](screenshot.png)\n\n## Gradle\n\n``` groovy\nrepositories { \n    maven { url \"https://jitpack.io\" }\n} \ndependencies {\n    compile 'com.github.czy1121:badgebutton:1.1.0'\n}\n```\n    \n## Usage\n    \n**XML**\n\n``` xml\n\u003cezy.ui.view.BadgeButton\n    style=\"@style/BadgeButton.GridItem\"\n    android:drawableTop=\"@mipmap/list_3\"\n    android:text=\"Text\"\n    app:btnBadgeText=\"8\"\n    app:btnBadgeVisible=\"true\"/\u003e\n``` \n\n**属性**\n\n``` xml \n\u003cdeclare-styleable name=\"BadgeButton\"\u003e\n    \u003c!-- 徽标文本，为空时显示一个小红点 --\u003e\n    \u003cattr name=\"btnBadgeText\" format=\"string\"/\u003e\n    \u003c!-- 徽标高度，宽度自适应 --\u003e\n    \u003cattr name=\"btnBadgeHeight\" format=\"dimension\"/\u003e\n    \u003c!-- 徽标背景色，文本白色 --\u003e\n    \u003cattr name=\"btnBadgeColor\" format=\"color\"/\u003e\n    \u003c!-- 徽标是否可见 --\u003e\n    \u003cattr name=\"btnBadgeVisible\" format=\"boolean\"/\u003e\n\u003c/declare-styleable\u003e\n```\n \n\n## License\n\n```\nCopyright 2016 czy1121\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```","funding_links":[],"categories":["徽章(Badge)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fbadgebutton","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczy1121%2Fbadgebutton","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fbadgebutton/lists"}