diff --git a/README.md b/README.md index cc03ef5..a23e34b 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,11 @@ allprojects { } ``` -Add `compile 'com.github.cpiz:BubbleView:0.9.6'` to your module-level `build.gradle` +Add `compile 'com.github.cpiz:BubbleView:{X.X.X}'` to your module-level `build.gradle` ``` dependencies { ... - compile 'com.github.cpiz:BubbleView:0.9.6' + compile 'com.github.cpiz:BubbleView:{X.X.X}' } ``` diff --git a/README_CN.md b/README_CN.md index 36ffde1..bca2c22 100644 --- a/README_CN.md +++ b/README_CN.md @@ -24,11 +24,11 @@ allprojects { } ``` -在模块目录的 `build.gradle` 中增加 `compile 'com.github.cpiz:BubbleView:0.9.6'` +在模块目录的 `build.gradle` 中增加 `compile 'com.github.cpiz:BubbleView:{X.X.X}'` ``` dependencies { ... - compile 'com.github.cpiz:BubbleView:0.9.6' + compile 'com.github.cpiz:BubbleView:{X.X.X}' } ``` diff --git a/library/src/main/java/com/cpiz/android/bubbleview/BubbleTextView.java b/library/src/main/java/com/cpiz/android/bubbleview/BubbleTextView.java index 56e1fec..0414421 100644 --- a/library/src/main/java/com/cpiz/android/bubbleview/BubbleTextView.java +++ b/library/src/main/java/com/cpiz/android/bubbleview/BubbleTextView.java @@ -46,9 +46,9 @@ private void init(Context context, AttributeSet attrs) { @Override protected void onLayout(boolean changed, int left, int top, int right, int bottom) { super.onLayout(changed, left, top, right, bottom); - if (changed) { - mBubbleImpl.updateDrawable(right - left, bottom - top, true); - } +// if (changed) { // fix PopupWindow wrong arrow position issue + mBubbleImpl.updateDrawable(right - left, bottom - top, true); +// } } @Override