Skip to content
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

Fix dismissability issues with tooltips that have custom View. #2169

Merged
merged 5 commits into from
Mar 4, 2021

Conversation

dbrant
Copy link
Member

@dbrant dbrant commented Mar 4, 2021

No description provided.

@dbrant dbrant requested a review from cooltey March 4, 2021 19:30
@dbrant dbrant added the High Priority Priority code review needed label Mar 4, 2021
@@ -5,6 +5,7 @@
android:orientation="vertical"
android:paddingStart="16dp"
android:paddingTop="16dp"
android:paddingBottom="16dp"
Copy link
Collaborator

@cooltey cooltey Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding 16dp will show too much space on the bottom (on Samsung S9). Would it be possible to change it to 8dp?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here's how it looks on my Pixel 2:

image

Are we sure the Balloon updates are ready for prime time?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see what's happening there.
The library uses the width instead of height to adjust the tooltip's height.

My Pixel 3 XL also has a similar issue you have on Pixel 2 (with android:paddingBottom="16dp" changes)

It would be better to change android:padding='16dp' for a proper fix.

Copy link
Collaborator

@cooltey cooltey Mar 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the ScrollView back to the tooltip custom views? I will report this issue to the author. 🆘

bab1c7b#diff-b973be46f02dbcc9ce6123253a46d143a264dd1713a7f15bc7eac15fbb80eaa3

@dbrant
Copy link
Member Author

dbrant commented Mar 4, 2021

@cooltey I've removed the layout changes from this PR, so this can just be fixing the logic of dismissing. After this, we can continue to tweak the layouts separately, or pull in more updates from the balloon library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
High Priority Priority code review needed
Development

Successfully merging this pull request may close these issues.

3 participants