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

使用hideKeyboardOnShow(false)设置弹窗时不收起键盘不生效 #503

Open
aikorola opened this issue Dec 14, 2023 · 1 comment
Open

Comments

@aikorola
Copy link

aikorola commented Dec 14, 2023

  • 系统版本(必须)/ System version (required):Vivo V2158A 安卓11

  • 库版本(必须)/ Library version (required):3.2.1

  • 问题代码/截图(可选)/ Problem code or screenshot (optional):

  • TranslatingDialog中------------
    -class TranslatingDialog(ctx: Context) : BasePopupWindow(ctx) {
    private val bd = DialogTranslatingBinding.inflate(LayoutInflater.from(context))

    init {
    hideKeyboardOnShow(false)//弹窗时不收起键盘
    hideKeyboardOnDismiss(false)//收起弹窗时不收起键盘
    contentView = bd.root
    popupGravity = Gravity.CENTER
    setBackgroundColor(Color.TRANSPARENT)
    }
    }

  • Activity中:------------

  • override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceState)
    val translatingDialog = TranslatingDialog(this)
    imageView4.setOnClickListener {
    translatingDialog.showPopupWindow()
    }
    }
    -xml中:------------
    -

  • 报错信息(可选)/ Error reporting information (optional):

问题描述/重现步骤请写在这里
Please write the description here.
点击EditeText弹起键盘,点击imageView弹窗,就会出现收起键盘然后马上拉起键盘的问题,必现

@xyggs
Copy link

xyggs commented Aug 22, 2024

+1,不过我们是弹窗后输入完手机号 显示loadding,键盘也是会收起然后重新弹出

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants