{"id":15068646,"url":"https://github.com/nikartx/image-support","last_synced_at":"2025-04-10T17:36:02.608Z","repository":{"id":48898715,"uuid":"122002803","full_name":"nikartx/Image-Support","owner":"nikartx","description":"Add badge with counter to ImageView Android. ","archived":false,"fork":false,"pushed_at":"2021-07-06T14:21:01.000Z","size":935,"stargazers_count":133,"open_issues_count":5,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T17:15:54.915Z","etag":null,"topics":["android","android-development","android-library","android-ui","badge","badge-count","counter","custom-view","icon","imageview"],"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/nikartx.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":"2018-02-19T00:10:24.000Z","updated_at":"2025-03-07T10:08:40.000Z","dependencies_parsed_at":"2022-09-26T16:31:03.962Z","dependency_job_id":null,"html_url":"https://github.com/nikartx/Image-Support","commit_stats":null,"previous_names":["nikartm/image-support"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikartx%2FImage-Support","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikartx%2FImage-Support/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikartx%2FImage-Support/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikartx%2FImage-Support/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikartx","download_url":"https://codeload.github.com/nikartx/Image-Support/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248262032,"owners_count":21074230,"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-development","android-library","android-ui","badge","badge-count","counter","custom-view","icon","imageview"],"created_at":"2024-09-25T01:38:42.114Z","updated_at":"2025-04-10T17:36:02.588Z","avatar_url":"https://github.com/nikartx.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Maven Central](https://img.shields.io/maven-central/v/io.github.nikartm/image-support.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22io.github.nikartm%22%20AND%20a:%22image-support%22) [![Android Arsenal]( https://img.shields.io/badge/Android%20Arsenal-ImageBadgeView-green.svg?style=flat )]( https://android-arsenal.com/details/1/7619)\n\n\n\n# ImageBadgeView\nLibrary to add ImageView (ImageBadgeView) with a badge like notification count.\n## Download\nAdd to gradle root:\n```\nallprojects {\n  repositories {\n    mavenCentral()\n  }\n}\n```\n\n#### After migrating to MavenCentral, use Groove:\n```\nimplementation 'io.github.nikartm:image-support:2.0.0'\n```\nOr Kotlin DSL:\n```\nimplementation(\"io.github.nikartm:image-support:2.0.0\")\n```\nOr take a different [approach](https://search.maven.org/artifact/io.github.nikartm/image-support/2.0.0/aar)\n\nOld way (deprecated):\n```\nimplementation 'com.github.nikartm:image-support:$LAST_VERSION'\n```\n\n## Screenshots\n![BarcodeInfo Screenshots](https://raw.githubusercontent.com/nikartm/Image-Support/master/screenshots/sct_1.png)\n## How to use?\nAdjust the xml view [More examples.](https://github.com/nikartm/Image-Support/blob/master/app/src/main/res/layout/activity_main.xml):\n```\n\u003cru.nikartm.support.ImageBadgeView\n    android:id=\"@+id/ibv_icon2\"\n    android:layout_width=\"80dp\"\n    android:layout_height=\"80dp\"\n    android:layout_marginTop=\"30dp\"\n    android:layout_gravity=\"center\"\n    android:padding=\"10dp\"\n    app:ibv_badgeValue=\"100\"\n    app:ibv_badgeTextSize=\"12sp\"\n    app:ibv_fixedBadgeRadius=\"15dp\"\n    app:ibv_badgeTextStyle=\"bold\"\n    app:ibv_badgeTextColor=\"#ffffff\"\n    app:ibv_badgeColor=\"#00ACC1\"\n    app:ibv_badgeLimitValue=\"false\"\n    android:src=\"@drawable/ic_shopping_cart\" /\u003e\n```\nOr programmatically:\n```\nimageBadgeView.setBadgeValue(27)\n        .setBadgeOvalAfterFirst(true)\n        .setBadgeTextSize(16)\n        .setMaxBadgeValue(999)\n        .setBadgeTextFont(typeface)\n        .setBadgeBackground(getResources().getDrawable(R.drawable.rectangle_rounded))\n        .setBadgePosition(BadgePosition.BOTTOM_RIGHT)\n        .setBadgeTextStyle(Typeface.NORMAL)\n        .setShowCounter(true)\n        .setBadgePadding(4);\n```\nChange the position of a badge on view:\n```\napp:ibv_badgePosition=\"bottom_right\"\n```\nUse the custom badge background:\n```\napp:ibv_badgeBackground=\"@drawable/rectangle_rounded\"\n```\nExample the custom background - rectangle_rounded.xml:\n```\n\u003cshape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:shape=\"rectangle\"\u003e\n\n    \u003csolid android:color=\"#ea5444\"/\u003e\n    \u003ccorners android:radius=\"24dp\"/\u003e\n\n    \u003cstroke\n        android:width=\"1dp\"\n        android:color=\"#f5f5f5\"/\u003e\n\u003c/shape\u003e\n```\n\n## License\nCopyright 2018 Ivan Vodyasov\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.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikartx%2Fimage-support","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikartx%2Fimage-support","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikartx%2Fimage-support/lists"}