💗 BGABadgeView-Android 💗
English Document
react-native-bga-badge-view
demo????:
- ????tab????????
- ???????????????vip??
- ???????????
- ????????????
- ??v4???RoundedBitmapDrawable??????
- ??????
ExplosionField ???????View???,??????????
??????????
???? Apk ????????????
Gradle??
dependencies {
compile 'cn.bingoogolapple:bga-badgeview:latestVersion@aar'
}
????????
?? | ???? |
---|---|
BGABadgeRadioButton | ???????? |
BGABadgeImageView | ???????? |
BGABadgeTextView | ???????BGABadgeCheckedTextView?? |
BGABadgeLinearLayout | ??item?????? |
BGABadgeRelativeLayout | ??item?????? |
BGABadgeFrameLayout | ??item?????? |
????
/** * ?????? */ void showCirclePointBadge();
/** * ?????? * * @param badgeText */ void showTextBadge(String badgeText);
/** * ???? */ void hiddenBadge();
/** * ?????? * * @param bitmap */ void showDrawableBadge(Bitmap bitmap);
/** * ??????????? * * @param delegate */ void setDragDismissDelegage(BGADragDismissDelegate delegate);
/** * ?????? * * @return */ boolean isShowBadge();
???????
??? | ?? | ??? |
---|---|---|
badge_bgColor | ????? | Color.RED |
badge_textColor | ??????? | Color.WHITE |
badge_textSize | ???????? | 10sp |
badge_verticalMargin | ???????????????? | 4dp |
badge_horizontalMargin | ???????????????? | 4dp |
badge_padding | ????????????????? | 4dp |
badge_gravity | ??????????? | BGABadgeImageView?BGABadgeRadioButton???????????????? |
badge_dragable | ?????????? | false |
badge_isResumeTravel | ????????????????????????????? | false |
badge_borderWidth | ?????? | 0dp |
badge_borderColor | ?????? | Color.WHITE |
badge_dragExtra | ????????????????? | 4dp |
?????BadgeView
?????????? BGABadgeable???????????? BGABadgeViewHelper??????????????????? BGABadgeRadioButton??????????????? BGABadgeLinearLayout
???
???? | ???? | ?? | BGA?????QQ? |
---|---|---|---|
bingoogolapple | bingoogolapple.cn | [email protected] |
????
???? BGA ????????????????
License
Copyright 2015 bingoogolapple 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.