프로젝트
GitHub에서 보기


matrixxun/MaterialBadgeTextView
소개
이름 그대로 새 메시지 배지와 새 기능 배지를 표시할 수 있는 Android 라이브러리입니다.
웹 및 앱 개발What you can do
- Material Design style - it provides a default shadow like FAB(Floating Action Bar)
- Easy to use - you can just use it as a normal TextView
- Really Lite - only ONE java class, no resource file
- Support MenuAction in Toolbar
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- -3
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalMaterialBadgeTextView
As the name describes, This "MaterialBadgeTextView" is an Android library that provides a reformed textview for Badge. A Badge is a colored circle with an inserted number which are displayed at the top-right conner of the icons, it often plays a role of showing new messages or new features in IM apps such as Facebook Messager, WhatsApp, WeChat, and forth.
Features
- Material Design style - it provides a default shadow like FAB(Floating Action Bar)
- Easy to use - you can just use it as a normal TextView
- Really Lite - only ONE java class, no resource file
- Support MenuAction in Toolbar
If you use mac OS X, you must have seen this image:

Demo Screen Capture

Usage
| Code | Badge |
|---|---|
setBadgeCount(0,true) |
the TextView is blank |
setBadgeCount(0,false) |
![]() |
setBadgeCount(3) |
![]() |
setBadgeCount(68) |
![]() |
setBadgeCount(101) |
![]() |
setBadgeCount(99999) |
![]() |
setHighLightMode() |
![]() |
setText("") |
the TextView is blank |
setText("Hello World!") |
![]() |
setText("10999999976") |
![]() |
Compat
API level 9+ supported
Example
See example code here on Github. You can also see it live downloading this apk
License
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.
관련 프로젝트 살펴보기
불러오는 중…






