Balloon v1.2.2 Release Notes

Release Date: 2020-09-02 // over 3 years ago
  • 🚀 🎉 Released a new version 1.2.2! 🎉

    What's New?

    • 🛠 Fixed - Setting larger arrow size causes text to be clipped (#89)
    • 👌 Support vector drawable for customized arrow drawable.
    • ✂ Removed setSpace function and added the below methods.
      If the location of the balloon according to the anchor is located at the boundaries on the screen,
      the balloon will be stick to the end of the screen. In that case, we can resolve by giving margins to the balloon.

      .setMargin(12) // sets the margin on the balloon all directions..setMarginLeft(14) // sets the left margin on the balloon..setMarginRight(14) // sets the right margin on the balloon..setMarginTop(14) .setMarginBottom(14)

    • ➕ Added measureTextWidth function for measuring the exact text size in the custom layout.
      measures the width of a TextView and set the measured with. If the width of the parent XML layout is wrapped content, and also the widths of TextViews in the parent layout is wrapped content, this functionality will measure the width exactly.
      We can use this method below way.

      val myTextView = customProfileBalloon.getContentView().findViewById<TextView>(R.id.myTextView) customProfileBalloon.measureTextWidth(myTextView)

    • 🔄 Changed internal values to constant definitions.

    • ⚡️ Updated kotlin version to 1.4.0 stable and used single method abstract conversions internally.

    • ⚡️ Updated to compile SDK version to 30 internally.