Something doesn't work correctly #252
-
Actually I set the balloon width and height "wrap" but it doesn't work for me and I tried a lot . |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 11 replies
-
Hi @MahdisYavari , |
Beta Was this translation helpful? Give feedback.
-
This is my balloon tooltip , Actually I changed the root layout to MaterialTextView and I set a red background color to find out its width and height length . Unfortunately I think there is a problem with the whole balloon class and it can't set it to WrapContent . I don't know the reason . |
Beta Was this translation helpful? Give feedback.
-
@skydoves finally I think it was because of "this" that I set it as lifecycle owner. |
Beta Was this translation helpful? Give feedback.
@skydoves
I found the problem . There wasn't any problem with layout file .
I used this before :
private val searchBalloon by lazy { BalloonUtils.getEditBalloon(requireContext(), this)
but I changed it like the code you wrote :
private val customProfileBalloon by balloon<BalloonUtils.ProfileBalloonFactory>()
finally I think it was because of "this" that I set it as lifecycle owner.
At the end Thanks .