-
-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arrow is hidden behind Balloon #123
Comments
One more note: custom layout's paddings are somehow removed too |
Sure, I got it from README and removed some irrelevant setup code.
Also please note the two different colors on the balloon. I'm not sure why this happens. Layout inspector didn't even show the view with different color |
Um.. this is really difficult to track the issue. |
It really depends on my style. This happens when |
Try this: styles.xml<style name="BalloonTheme" parent="Theme.AppCompat.Light">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:fitsSystemWindows">false</item>
</style> Balloon.Builderval styledContext: Context = ContextThemeWrapper(context, R.style.BalloonTheme)
return Balloon.Builder(styledContext)
.setText("You can edit your profile now!")
.setArrowSize(10)
.setWidthRatio(1.0f)
.setArrowConstraints(ArrowConstraints.ALIGN_ANCHOR)
.setArrowPosition(0.5f)
.setPadding(12)
.setMarginRight(12) |
I feel the |
@osrl |
It's resolved thanks |
Please complete the following information:
Describe the Bug:
Arrow is hidden behind the balloon. I'm using the same example as "Create using kotlin dsl" section
When I inspected the layout, I discovered that balloon_content's padding is 0, even if it's set on
initializeBalloonContent
function correctly.Expected Behavior:
balloon_content's padding should be set correctly
The text was updated successfully, but these errors were encountered: