From aaa4c9b7a676807e63bf30dfa593e332894aadd7 Mon Sep 17 00:00:00 2001 From: "andy.lee" Date: Wed, 9 Oct 2019 10:24:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9badge=20=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/roughike/bottombar/BottomBarBadge.java | 2 +- bottom-bar/src/main/res/values/styles.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bottom-bar/src/main/java/com/roughike/bottombar/BottomBarBadge.java b/bottom-bar/src/main/java/com/roughike/bottombar/BottomBarBadge.java index ed266b7a..3ac3ddde 100644 --- a/bottom-bar/src/main/java/com/roughike/bottombar/BottomBarBadge.java +++ b/bottom-bar/src/main/java/com/roughike/bottombar/BottomBarBadge.java @@ -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); diff --git a/bottom-bar/src/main/res/values/styles.xml b/bottom-bar/src/main/res/values/styles.xml index 43bde5d7..f5f8c72a 100644 --- a/bottom-bar/src/main/res/values/styles.xml +++ b/bottom-bar/src/main/res/values/styles.xml @@ -28,7 +28,7 @@ wrap_content - \ No newline at end of file