1

我想知道 Java 中的侦听器层次结构是什么。

例如,当我设置两个像onFocusChangeand之类的侦听onClick器(这些只是示例)时,哪个会先触发?

有人可以回答这个问题吗?

4

1 回答 1

0

Nobody can answer this question as there are no provisions what the order is.

An implementation is free to fire the listeners in any order.

You can read the souce code of the class to get the concrete order for a certain implementation.

于 2013-06-18T06:13:36.613 回答