Changelog History
Page 1
-
v1.2.7 Changes
December 01, 2020๐ ๐ Released a new version
1.2.7
! ๐What's New?
- ๐ Fixed: Arrow not showing if the parent of an anchor is rtl. (#125)
- ๐ Fixed: Arrow is hidden behind Balloon If fitsSystemWindows` is true in theme styles. (#123)
- ๐ Changed previous anim, drawable, and styles resources convention. (08f9723)
- ๐ Changed previous layout and drawable resources naming convention. (30917cf)
- ๐จ Refactor show and
relayShow
functionalities for receivingxOff
andyOff
. (b7c9808)
-
v1.2.6 Changes
November 24, 2020๐ ๐ Released a new version
1.2.6
! ๐What's New?
- ๐ Fix
setPaddingResource
andsetMarginResource
are applied as double size. (21dee54) - ๐ Prevent generating the
BuildConfig
class from the balloon module. - ๐ Changed visibility of the
ActivityBalloonLazy
andFragmentBalloonLazy
class as internal. - ๐จ Internal refactorings.
- ๐ Fix
-
v1.2.5 Changes
November 07, 2020๐ ๐ Released a new version
1.2.5
! ๐What's New?
- ๐ Hided void return-type setters in the Builders for Java APIs.
- ๐ Migrate deprecated
fromHtml
toHtmlCompat
and moveapplyIconForm
. (f92b4e4) - ๐ Change isOutsideTouchable is always true of the bodyWindow. (#93)
- Implement
isFinishing()
extension and checkisFinishing
an activity. (#92) - ๐จ Refactor onDestroy and onPause functions by lifecycle events to dismiss. (#92)
- โก๏ธ Updated gradle build tool version to 4.1.0 and wrapper version to 6.6.1 internally.
-
v1.2.4 Changes
October 15, 2020๐ ๐ Released a new version
1.2.4
! ๐What's New?
- โ Added an overlay window for highlighting an anchor view.
We can show an overlay window over the whole screen except an anchor view.
.setIsVisibleOverlay(true) // sets the visibility of the overlay for highlighting an anchor..setOverlayColorResource(R.color.overlay) // background color of the overlay using a color resource..setOverlayPadding(6f) // sets a padding value of the overlay shape internally..setBalloonOverlayAnimation(BalloonOverlayAnimation.FADE) // default is fade.
We can change the shape of the highlighting using .setOverlayShape.
.setOverlayShape(BalloonOverlayOval) // default shape.setOverlayShape(BalloonOverlayRect) .setOverlayShape(BalloonOverlayCircle(radius = 36f)) .setOverlayShape(BalloonOverlayRoundRect(12f, 12f))
And we can set the specific position of the overlay shape using the below method.
.setOverlayPosition(Point(x, y)) // sets a specific position of the overlay shape.
-
v1.2.3 Changes
September 10, 2020๐ ๐ Released a new version
1.2.3
! ๐What's New?
- ๐ Used
JvmSynthetic
for supporting Java APIs without using kotlin dependency. - โ Added support for clickable HTML links by exposing the
movementMethod
attribute of TextView in builders (#97) - โ Added internal modifiers to some public APIs.
- ๐ Used
-
v1.2.2 Changes
September 02, 2020๐ ๐ Released a new version
1.2.2
! ๐What's New?
- ๐ Fixed - Setting larger arrow size causes text to be clipped (#89)
- ๐ Support vector drawable for customized arrow drawable.
โ Removed
setSpace
function and added the below methods.
If the location of the balloon according to the anchor is located at the boundaries on the screen,
the balloon will be stick to the end of the screen. In that case, we can resolve by giving margins to the balloon..setMargin(12) // sets the margin on the balloon all directions..setMarginLeft(14) // sets the left margin on the balloon..setMarginRight(14) // sets the right margin on the balloon..setMarginTop(14) .setMarginBottom(14)
โ Added
measureTextWidth
function for measuring the exact text size in the custom layout.
measures the width of aTextView
and set the measured with. If the width of the parent XML layout is wrapped content, and also the widths ofTextView
s in the parent layout is wrapped content, this functionality will measure the width exactly.
We can use this method below way.val myTextView = customProfileBalloon.getContentView().findViewById<TextView>(R.id.myTextView) customProfileBalloon.measureTextWidth(myTextView)
๐ Changed internal values to constant definitions.
โก๏ธ Updated kotlin version to 1.4.0 stable and used single method abstract conversions internally.
โก๏ธ Updated to compile SDK version to 30 internally.
-
v1.2.1 Changes
August 07, 2020๐ ๐ Released a new version
1.2.1
! ๐What's New?
- โ Added
update(anchor: View)
,update(anchor: View, xOff: Int, yOff: Int)
functionalities.
โก๏ธ Updating popup and arrow position of the popup based on a new target anchor view with additional x-off and y-off. (#68) - โก๏ธ Updated
appcompat
version to1.2.0
stable. - ๐ Changed
android.arch.lifecycle
package toandroidx.arch.lifecycle
internally. - ๐ Fixed not working properly when
setDismissWhenTouchOutside
withBalloonAnimation.CIRCULAR
. (#85)
- โ Added
-
v1.2.0 Changes
July 30, 2020๐ ๐ Released a new version
1.2.0
! ๐What's New?
- Arrow not placing the first time at the right position (#74)
- โ Added a
setDismissWhenLifecycleOnPause
functionality. (#77)
The balloon popup will be dismissed when the lifecycle owner is on pause status. This method must be work used with1setLifecycleOwner
. - โ Added
setIconGravity(value: IconGravity)
functionality for deciding gravity of the icon. - โ Added
OnBalloonInitializedListener
for listening initialized balloon content. (when balloon popup is shown)
-
v1.1.9 Changes
June 27, 2020๐ ๐ Released a new version
1.1.9
! ๐What's New?
- ๐ Now
setText
receivesCharSequence
type instead ofString
type for supportingSpannableStringBuilder
. (#70) โ Added set arrow padding functionalities for making different arrow size of width and height. (#64)
The width/height size of the arrow must be the same internally, so we can set different width and height size of the arrow using these functions.setArrowLeftPadding(@Dp value: IntsetArrowRightPadding(@Dp value: Int) setArrowTopPadding(@Dp value: Int) setArrowBottomPadding(@Dp value: Int)
โ Added
setTextGravity
functionality for aligning text. (#65)โ Added
setArrowAlignAnchorPadding
/setArrowAlignAnchorPaddingRatio
functionalities for giving padding from the end of position when we using withArrowConstraints.ALIGN_ANCHOR
. (#67)โ Added additional dimension resource type functionalities as a parameter from previous existing functions that receive a parameter as a Dp size.
setWidthResource(@DimenRes value: Int) setHeightResource(@DimenRes value: Int) setPaddingResource(@DimenRes value: Int) setSpaceResource(@DimenRes value: Int) setArrowSizeResource(@DimenRes value: Int) setCornerRadiusResource(@DimenRes value: Int) setIconSizeResource(@DimenRes value: Int) setIconSpaceResource(@DimenRes value: Int) setElevationResource(@DimenRes value: Int)
- ๐ Now
-
v1.1.8 Changes
June 16, 2020๐ ๐ Released a new version
1.1.8
! ๐What's New?
We can now determine the constraints of the arrow positioning using the
ArrowConstraints
.
0๏ธโฃ The default constraint is stillALIGN_BALLOON
, we can change theArrowConstraints
using the
setArrowConstraints
method.// Aligning arrow based on the anchor view. // if an arrowPosition is 0.5, the arrow will be positioned center of the anchor view..setArrowConstraints(ArrowConstraints.ALIGN\_ANCHOR)// Aligning arrow based on the balloon popup.// if an arrowPosition is 0.5, the arrow will be positioned center of the balloon popup..setArrowConstraints(ArrowConstraints.ALIGN\_BALLOON) // default
๐ Make
setDismissWhenTouchOutside
option makes focusable false (#53)โ Add support for setting text with HTML (#54)
If thesetTextIsHtml
is true, we can set text with HTML tags usingTextForm
.Setter for custom layout view instead of resource (#59)
Now we can set a layout as an instance of a view dynamically, not from resource layout.FragmentBalloonLazy uses
viewLifecycleOwner
instead of thefragmentLifecycleOwner
.