skydoves / Balloon

:balloon: Modernized and sophisticated tooltips, fully customizable with an arrow and animations for Android.

Home Page:https://skydoves.github.io/libraries/balloon/html/balloon/com.skydoves.balloon/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showing balloon while typing

rezafaraji93 opened this issue · comments

  • Library Version [v1.6.2]
  • Affected Device(s) [Android 7 - 14]

Describe the Bug:

I am showing the balloon on top of a textfield. I want to show balloon to user to view some instructions while user is typing, but whenever the balloon appears it blocks user from typing and entering anything.

Expected Behavior:

I want the balloon to be shown on my textfield and not blocking user from typing words into textfield.

Hey @rezafaraji93, sorry for the late response. Is this about Jetpack Compose?

Yes, it is for Jetpack Compose.
@skydoves

You can add these options to your Balloon.Builder.

setDismissWhenClicked(false)
setDismissWhenTouchOutside(false)

The balloon will not be dismissed while you're typing or doing any other interaction out of the balloon.

The problem is not that balloon dismisses, It just blocks users from entering keyboard and any character.

Hmm, I got it. I think Balloon took a focus over the TextField. Would you give a focus on your TextField using FocusRequester after displaying Balloon??

I will try it!