All Versions
7
Latest Version
Avg Release Cycle
11 days
Latest Release
77 days ago

Changelog History

  • v1.0.6

    September 20, 2019

    🚀 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)
    
  • v1.0.5

    August 29, 2019

    🚀 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
  • v1.0.4

    August 16, 2019

    🚀 Released version 1.0.4.

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

  • v1.0.3

    August 15, 2019

    🚀 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) } } }
    
  • v1.0.2

    August 09, 2019

    🚀 released version 1.0.2.

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

  • v1.0.1

    July 30, 2019

    implemented below methods.

    • setOnBalloonOutsideTouchListener
    • setDismissWhenTouchOutside
  • v1.0.0

    July 15, 2019

    🍱 🎉🎉 Published version 1.0.0. 🎉🎉