All Projects → czy1121 → Badgebutton

czy1121 / Badgebutton

Licence: apache-2.0
带有徽标(数字,小红点)的按钮

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Badgebutton

Counterfab
A FloatingActionButton subclass that shows a counter badge on right top corner
Stars: ✭ 725 (+67.05%)
Mutual labels:  badge, button
Svg2shenzhen
Convert Inkscape SVG drawings to KiCad PCB and footprint modules
Stars: ✭ 413 (-4.84%)
Mutual labels:  badge
Gorganizer
Organize your folders into a beautiful classified folder structure with this perfect tool
Stars: ✭ 318 (-26.73%)
Mutual labels:  badge
Cordova Plugin Badge
Access and modify badge numbers
Stars: ✭ 386 (-11.06%)
Mutual labels:  badge
Handycontrols
Contains some simple and commonly used WPF controls based on HandyControl
Stars: ✭ 347 (-20.05%)
Mutual labels:  badge
Substats
📈📉 Shhhh...we're counting your subscribers!
Stars: ✭ 396 (-8.76%)
Mutual labels:  badge
Kratos Boilerplate
🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules
Stars: ✭ 308 (-29.03%)
Mutual labels:  badge
Shinebutton
This is a UI lib for Android. Effects like shining.
Stars: ✭ 4,105 (+845.85%)
Mutual labels:  button
Badgeview
支持自由定制外观、拖拽消除的MaterialDesign风格Android BadgeView
Stars: ✭ 3,966 (+813.82%)
Mutual labels:  badge
Swift Badge
A badge view for iOS/tvOS written in Swift
Stars: ✭ 379 (-12.67%)
Mutual labels:  badge
Ahdownloadbutton
Customizable download button with progress and transition animations. It is based on Apple's App Store download button.
Stars: ✭ 370 (-14.75%)
Mutual labels:  button
Segmentedbutton
Segmented Control with animation for Android API 12+
Stars: ✭ 352 (-18.89%)
Mutual labels:  button
Squishbutton
A button that squishes when pressed. As seen in the Clips app.
Stars: ✭ 401 (-7.6%)
Mutual labels:  button
Flexiblebutton
灵活的按键处理库(Flexible Button)| 按键驱动 | 支持单击、双击、连击、长按、自动消抖 | 灵活适配中断和低功耗 | 按需实现组合按键
Stars: ✭ 322 (-25.81%)
Mutual labels:  button
Submitbutton
A submit button with a fun animation for Android.
Stars: ✭ 419 (-3.46%)
Mutual labels:  button
Efcountinglabel
Adds animated counting support to UILabel.
Stars: ✭ 311 (-28.34%)
Mutual labels:  button
Open Source Badges
Open Source & Licence Badges
Stars: ✭ 368 (-15.21%)
Mutual labels:  badge
Flutter badges
A flutter package for creating badges.
Stars: ✭ 391 (-9.91%)
Mutual labels:  badge
Nfdownloadbutton
Revamped Download Button. It's kinda a reverse engineering of Netflix's app download button.
Stars: ✭ 429 (-1.15%)
Mutual labels:  button
Onebutton
An Arduino library for using a single button for multiple purpose input.
Stars: ✭ 418 (-3.69%)
Mutual labels:  button

BadgeButton

带有徽标(数字,小红点)的按钮

badgebutton

Gradle

repositories { 
    maven { url "https://jitpack.io" }
} 
dependencies {
    compile 'com.github.czy1121:badgebutton:1.1.0'
}

Usage

XML

<ezy.ui.view.BadgeButton
    style="@style/BadgeButton.GridItem"
    android:drawableTop="@mipmap/list_3"
    android:text="Text"
    app:btnBadgeText="8"
    app:btnBadgeVisible="true"/>

属性

<declare-styleable name="BadgeButton">
    <!-- 徽标文本,为空时显示一个小红点 -->
    <attr name="btnBadgeText" format="string"/>
    <!-- 徽标高度,宽度自适应 -->
    <attr name="btnBadgeHeight" format="dimension"/>
    <!-- 徽标背景色,文本白色 -->
    <attr name="btnBadgeColor" format="color"/>
    <!-- 徽标是否可见 -->
    <attr name="btnBadgeVisible" format="boolean"/>
</declare-styleable>

License

Copyright 2016 czy1121

Licensed 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

   http://www.apache.org/licenses/LICENSE-2.0

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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].