Closed Bikeskin closed 3 years ago
Hi, @Bikeskin! Could you share the root layout of your custom layout?
Hi sky, <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="179dp" android:layout_height="wrap_content" .... ...
Is it the same result if you use the below method?
setWidth(179)
Yes, it isn't working. But the problem was solved when i upgrade the version to 1.3.2. And we have a new problem :D
Can you explain the details of the problem? And you can set the corner radius using the below method without setting the radius drawable on your custom layout.
setCornerRadius(14f)
Hi, @Bikeskin Please reopen this issue if you face the same again :)
Hi, sky, thanks for this library, it has made my job easier many times :)
Describe the Bug:
Just change lib version 1.2.9 to 1.3.1
Custom Layout:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:orientation="vertical" android:layout_width="@dimen/toolbar_more_width" android:layout_height="wrap_content">
fun ...(context: Context, layout: Int): Balloon { return Balloon.Builder(context) .setArrowSize(1) .setLayout(layout) .setMarginRight(10) .setMarginTop(15) .setIsVisibleOverlay(true) .setOverlayColorResource(R.color.transparent_color_dark) .setOverlayShape(BalloonOverlayRect) .setFocusable(false) .setBackgroundColor(ContextCompat.getColor(context, R.color.white)) .setBalloonAnimation(BalloonAnimation.FADE) .build() }