Skip to content

Releases: skydoves/Balloon

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

1.0.9

04 Jan 05:26
a191841
Compare
Choose a tag to compare

Released version 1.0.9.

Features:

  • Implemented dismissWithDelay functionality.
  • Implemented setAutoDismissDuration functionality. (#8)
  • Removed & optimized useless resources.

1.0.8

02 Jan 11:56
7547762
Compare
Choose a tag to compare

Released version 1.0.8.

Features :

  • Fixed add setBalloonAnimationStyle for supporting style resource.
  • Fixed setting and getting preference (persistence) showing times (#12)
  • Refactored BalloonPreferenceManager to BalloonPersistence.

1.0.7

25 Dec 07:00
fadba2e
Compare
Choose a tag to compare

Released version 1.0.7.

Features :

We can show balloon popup sequentially using relayShow method.
The relayShow method makes that setOnDismissListener of the first balloon is reset to show the
next balloon and returns an instance of the next balloon.

customListBalloon
  .relayShowAlignBottom(customProfileBalloon, circleImageView) // relay to customListBalloon
  .relayShowAlignTop(customTagBalloon, bottomNavigationView, 130, 0) // relay to customProfileBalloon

// show sequentially customListBalloon-customProfileBalloon-customTagBalloon
customListBalloon.showAlignBottom(toolbar_list)
  • Support for XML animations (#10)

We can set animation custom xml style using setBalloonAnimationStyle method.

<style name="ElasticAndFadeOut">
  <item name="android:windowEnterAnimation">@anim/elastic_center</item>
  <item name="android:windowExitAnimation">@anim/fade_out</item>
</style>
setBalloonAnimationStyle(R.style.ElasticAndFadeOut)

1.0.6

20 Sep 04:27
7811f52
Compare
Choose a tag to compare

Released version 1.0.6.

Features :

  • Pass down View & MotionEvent to listeners (#6)

OnBalloonClickListener

fun onBalloonClick(view: View)

OnBalloonOutsideTouchListener

fun onBalloonOutsideTouch(view: View, event: MotionEvent)
  • Support for setting TypeFace type (#7)
    We can set the Typeface object using setTypeface(value: Typeface) function.
fun setTextTypeface(value: Typeface)
  • Added setting drawable using __Resource functionality.

before

.setTextColor(ContextCompat.getColor(baseContext, R.color.white_87))
.setIconDrawable(ContextCompat.getDrawable(baseContext, R.drawable.ic_edit))
.setBackgroundColor(ContextCompat.getColor(baseContext, R.color.skyBlue))

after

.setTextColorResource(R.color.white_87)
.setIconDrawableResource(R.drawable.ic_edit)
.setBackgroundColorResource(R.color.skyBlue)

1.0.5

29 Aug 11:37
35c2d5c
Compare
Choose a tag to compare

Released new version 1.0.5.

  • Added setDismissWhenShowAgain and setDismissWhenClicked to the Balloon.Builder.
  • Added setBackgroundColorResource and setTextColorResource funtions.

Before

.setTextColor(ContextCompat.getColor(baseContext, R.color.white_87))
.setBackgroundColor(ContextCompat.getColor(baseContext, R.color.skyBlue))

After

.setTextColorResource(R.color.white_87)
.setBackgroundColorResource(R.color.yellow)
  • Optimized internal logic

1.0.4

16 Aug 15:46
0f17814
Compare
Choose a tag to compare

Released version 1.0.4.

Balloon's Show methods and extensions can be used without any onClickListeners or delay.

1.0.3

15 Aug 15:26
a0d7560
Compare
Choose a tag to compare

Released version 1.0.3.

Implemented

  • Balloon.Factory abstract class for creating Balloon instance using lazy delegate.
  • balloon lazy delegate extension on ComponentActivity, Fragment.

Now it is possible to create a balloon instance using balloon keyword.

Before
CustomActivity.kt

class CustomActivity : AppCompatActivity() {
  private val profileBalloon by lazy { BalloonUtils.getProfileBalloon(this, this) }

  // ...
}

After
CustomActivity.kt

class CustomActivity : AppCompatActivity() {
  private val profileBalloon by balloon(ProfileBalloonFactory::class)

  // ...
}

ProfileBalloonFactory.kt

class ProfileBalloonFactory : Balloon.Factory() {

  override fun create(context: Context, lifecycle: LifecycleOwner): Balloon {
    return createBalloon(context) {
      setLayout(R.layout.layout_custom_profile)
      setArrowSize(10)
      setArrowOrientation(ArrowOrientation.TOP)
      setArrowPosition(0.5f)
      setWidthRatio(0.55f)
      setHeight(250)
      setCornerRadius(4f)
      setBackgroundColor(ContextCompat.getColor(context, R.color.background900))
      setBalloonAnimation(BalloonAnimation.CIRCULAR)
      setLifecycleOwner(lifecycle)
    }
  }
}

1.0.2

09 Aug 16:49
b458bb1
Compare
Choose a tag to compare

released version 1.0.2.

implemented missing method onDestroy which dismiss automatically when lifecycle owner is onDestroy.