Skip to content

Releases: skydoves/Balloon

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.

1.0.1

30 Jul 15:45
39210b6
Compare
Choose a tag to compare

implemented below methods.

  • setOnBalloonOutsideTouchListener
  • setDismissWhenTouchOutside

1.0.0

15 Jul 05:43
c1eca00
Compare
Choose a tag to compare

🎉🎉 Published version 1.0.0. 🎉🎉