Skip to content
a BadeView base on android
Branch: master
Clone or download
Latest commit 0f23bea Mar 20, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea add badgeview shape Nov 8, 2016
gradle/wrapper a badgeview Jul 15, 2016
library add setSpace method to set Spacce Feb 4, 2017
.gitignore a badgeview Jul 15, 2016 Update Mar 20, 2017
build.gradle add badgeview shape Nov 8, 2016 a badgeview Jul 15, 2016
gradlew a badgeview Jul 15, 2016
gradlew.bat a badgeview Jul 15, 2016
settings.gradle a badgeview Jul 15, 2016


a BadeView base on android


     compile 'com.allenliu.badgeview:library:1.1.1'(newest)

bind like this:


if u want to set space dont use setMargin(),use setSpace instead.

There are some other constructer methods and you can be easy to create your own shape :


unbind view just use unbind method.


history version

  • v1.0.6   add setMarginmethod,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.

  • v1.1.1 add setSpacemethod,it replace origin method setMargin is a Deprecated method.Use setSpace method to set space between view and badgeview instead.


    Copyright 2016 AllenLiu.

    Licensed to the Apache Software Foundation (ASF) under one or more contributor
    license agreements. See the NOTICE file distributed with this work for
    additional information regarding copyright ownership. The ASF licenses this
    file to you under the Apache License, Version 2.0 (the "License"); you may not
    use this file except in compliance with the License. You may obtain a copy of
    the License at

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
    License for the specific language governing permissions and limitations under
    the License.

welecome to star,thank you.

You can’t perform that action at this time.