Changelog History
Page 3
-
v1.0.7 Changes
December 25, 2019๐ Released version 1.0.7.
๐ Features :
- Implemented relay functions.
We can show balloon popup sequentially using
relayShow
method.
TherelayShow
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-customTagBallooncustomListBalloon.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)
-
v1.0.6 Changes
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 theTypeface
object usingsetTypeface(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 Changes
August 29, 2019๐ Released new version
1.0.5
.- โ Added
setDismissWhenShowAgain
andsetDismissWhenClicked
to theBalloon.Builder
. - โ Added
setBackgroundColorResource
andsetTextColorResource
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
- โ Added
-
v1.0.4 Changes
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 Changes
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 Changes
August 09, 2019๐ released version
1.0.2
.implemented missing method
onDestroy
which dismiss automatically when lifecycle owner is onDestroy. -
v1.0.1 Changes
July 30, 2019implemented below methods.
setOnBalloonOutsideTouchListener
setDismissWhenTouchOutside
-
v1.0.0 Changes
July 15, 2019๐ฑ ๐๐ Published version
1.0.0
. ๐๐