Repository navigation
How to make arrow triangle base wider than its height? #216
Replies: 2 comments 5 replies
|
Could you try using the setArrowTopPadding? .setArrowSize(16)
.setArrowTopPadding(8) // or .setArrowBottomPadding(8) based on the orientation |
|
The 1.7.6 View API now exposes independent arrow dimensions. For a top/bottom arrow, you can use a wider base without replacing the built-in drawable: val balloon = Balloon.Builder(context)
.setText("Tooltip")
.setArrowOrientation(ArrowOrientation.TOP)
.setArrowWidth(24)
.setArrowHeight(8)
.setArrowColorMatchBalloon(true)
// Keep your existing background/gradient configuration.
.setLifecycleOwner(lifecycleOwner)
.build()
This also lets you keep the built-in arrow for your This snippet targets 1.x. Balloon 2.x has a different Compose API, including |
Uh oh!
There was an error while loading. Please reload this page.
The issue I encountered has been introduced at the #64.
Despite the ticket is closed, I am still having the problem - it is impossible to make the arrow triangle base wider than its height.
This is what I am trying to achieve:
All reactions