Skip to content

Commit

Permalink
修改badge 字体大小
Browse files Browse the repository at this point in the history
  • Loading branch information
andyNinty committed Oct 9, 2019
1 parent d1b1a37 commit aaa4c9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ void adjustPositionAndSize(BottomBarTab tab) {
ViewGroup.LayoutParams params = getLayoutParams();

// int size = Math.max(getWidth(), getHeight());
float xOffset = (float) (iconView.getWidth() / 1.25);
float xOffset = (float) (iconView.getWidth() / 1.5);

setX(iconView.getX() + xOffset);
setTranslationY(10);
Expand Down
2 changes: 1 addition & 1 deletion bottom-bar/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<item name="android:layout_height">wrap_content</item>
</style>

<style name="BB_BottomBarBadge_Text" parent="TextAppearance.AppCompat.Body2">
<style name="BB_BottomBarBadge_Text" parent="TextAppearance.AppCompat.Caption">
<item name="android:textColor">#FFFFFF</item>
</style>
</resources>

0 comments on commit aaa4c9b

Please sign in to comment.