ViewPostImeInputStage ACTION_DOWNViewPostImeInputStage、ACTION_DOWN

2023-09-07 16:53:15 作者:-蹲街戏&小妞

由于我试图调试我的计划,我想不通的错误。

As I'm trying to debug my program, I can't figure out the error.

我已经初始化,两个按钮和使用.setOnClickListener他们。当用户点击按钮,它们应该看到调试消息在LogCat中。不过,我一直看到这条消息出现,而不是每当我按一下按钮,或者如果我点击屏幕上的任何地方都:ViewPostImeInputStage ACTION_DOWN。

I have initialized two buttons and used .setOnClickListener on them. When the user clicks the buttons, they are supposed to see a debug message on LogCat. However, I keep seeing this message appear instead whenever I click the button, or if I click anywhere at all on the screen: ViewPostImeInputStage ACTION_DOWN.

有谁知道消息意味着什么,或者如果他们到我的问题的解决方案?

Does anyone know what that message signifies, or if they a solution to my problem?

太感谢了!

推荐答案

ViewPostImeInputStage ACTION_DOWN是发生在个别情况下,你的布局被拒绝而产生的错误,你无法再点击任何可点击的项目,并发生了什么反而是一个ViewPostImeInputStage ACTION_DOWN与每个按钮preSS(无动作)。这个解决方法很简单,包装与父母布局的内容。所以,如果你的XML格式是

ViewPostImeInputStage ACTION_DOWN is a bug that occurs stemming from the rare instance where your layout is rejected and you are no longer able to click on any clickable items, and what occurs instead is a ViewPostImeInputStage ACTION_DOWN with every button press (and no action). The solution for this is simple, wrap your layout content with a parent. So if you xml format was

<LinearLayout <---root layout
...
<!-- your content -->
</LinearLayout> <-- root layout end

更改

<FrameLayout <---root layout
   <LinearLayout <-- parent wrap start
   ...
<!-- your content -->
   </LinearLayout> <-- parent wrap end
</FrameLayout> <-- root layout end

这个解决方案应该解决冲突。这是ATLEAST什么为我工作。干杯!

This solution should resolve that conflict. Atleast this is what has worked for me. Cheers!