Skip to content

Releases: skydoves/Balloon

1.1.9

27 Jun 08:28
Compare
Choose a tag to compare

🎉 Released a new version 1.1.9! 🎉

What's New?

  • Now setText receives CharSequence type instead of String type for supporting SpannableStringBuilder. (#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: Int
setArrowRightPadding(@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 with ArrowConstraints.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)

1.1.8

16 Jun 11:11
baa091f
Compare
Choose a tag to compare

🎉 Released a new version 1.1.8! 🎉

What's New?

  • Option to have arrow point at (center of) anchor view (#47, #61, #58)

We can now determine the constraints of the arrow positioning using the ArrowConstraints.
The default constraint is still ALIGN_BALLOON, we can change the ArrowConstraints 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 the setTextIsHtml is true, we can set text with HTML tags using TextForm.

  • 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 the fragmentLifecycleOwner.

1.1.7

17 May 16:45
d6be173
Compare
Choose a tag to compare

🎉Released a new version 1.1.7!🎉

What's New?

  • Fixed circular revealed animation not working properly.
  • Added setCircularDuration functionality for changing the duration of circular revealed/unrevealed animation.
  • Added lifecycle-common-java8 dependency for processing lifecycle annotations.
  • Shadow not displaying. setElevation not working (#35)
  • Text/images cut off on sides (#42, #50)

1.1.6

13 May 14:28
1d473fd
Compare
Choose a tag to compare

🎉Released a new version 1.1.6!🎉

What's New?

  • Used ViewBinding instead of Kotlin synthetic for increasing the performance of the inflating views.
  • Setting arrow LEFT messes view for custom layouts (#48)
  • Arrow not it the right place on Android 23 (#45)
  • ClassNotFoundException on App StartUp (#37)
  • Added setFocusable attribute and the default value is true (#49)

setFocusable

Before the balloon can not dismiss automatically when pressed the back button, and we can touchable other views and balloons when a balloon popup is already showing.
From this release, the balloon popup is one target base by default, so if we press the back button, the balloon popup will be dismissed (we don't need to use OnBalloonOutsideTouchListener for dismissing), and it will be dismissed automatically if we touch outside of the balloon popup.
We can control these functionalities using the setFocusable method (like before version).

1.1.5

18 Apr 17:27
5b20045
Compare
Choose a tag to compare

🎉Released a new version 1.1.5!🎉

What's New?

Fixed some issues related to measuring size of the balloon (#34)

1.1.4

31 Mar 15:49
206c14d
Compare
Choose a tag to compare

🎉Released a new version 1.1.4!🎉

What's new?

1.1.3

27 Mar 19:44
5fb1f38
Compare
Choose a tag to compare

🎉 Released a new version 1.1.3! 🎉

What's new?

  • The minimum API level is changed 16 -> 17.
  • Fixed some issues (#25, #27, #33)
  • Added new functionalities: setElevation, setArrowColor, setArrowColorResource.

setElevation

We can set the shadow of the balloon.

setArrowColor, setArrowColorResource

We can set the specific color of the arrow, regardless of the background color.

1.1.2

20 Mar 15:27
ced8324
Compare
Choose a tag to compare

🎉 Released a new version 1.1.2 ! 🎉

What's new?

The balloon popup wraps content from now. (#1)
So we can use wrap_content to the custom layouts without using setWidth and setHeight methods.

- setWidth(120)
- setHeight(65)
+ setPadding(8) // sets 8dp padding for all directions (left-top-right-bottom) 

We can use setPaddingLeft, setPaddingTop, setPaddingRight, setPaddingBottom instead of the setPadding.
Also, still we can use the setWidth and setHeight methods instead of the setPadding.

Width and height

We can control the size of the width and height using 3 ways: Padding, Specific size, Screen Ratio.

Padding

Balloon wraps a content. So the balloon's width and height size will be decided by the content.

We can set the size of the balloon using paddings of the content.

balloon.setPadding(6) // sets 6dp padding to all directions (left-top-right-bottom)
balloon.setPaddingLeft(8) // sets 8dp padding to content's left.
balloon.setPaddingTop(12) // sets 12dp padding to content's top.

Specific size

We can set the specific size of the balloon regardless of contents.

balloon.setWidth(220) // sets 220dp size width.
balloon.setHeight(160) // sets 160dp size height.

According to screen ratio

Also, we can set the width according to the ratio of the horizontal screen's size.

balloon.setWidthRatio(0.5f) // sets width as 50% of the horizontal screen's size.

1.1.1

03 Mar 12:16
774a4b9
Compare
Choose a tag to compare

Released a new version 1.1.1.

  • Fixed a bug dismissWhenTouchOutside: #17
  • RTL support: #19
    Now Balloon supports RTL (right-to-left) layout using isRtlSupport functionalities.
    If the parameter is true, the balloon popup's layout will be right-to-left.
    Here is an example.

1.1.0

16 Feb 12:27
1e8e9ec
Compare
Choose a tag to compare

Released a new version 1.1.0.

Implemented some features:

  • circular un-revealed when dismissing balloon popup.
  • A new animation BalloonAnimation .OVERSHOOT