Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为 Android 按钮创建自定义侦听器。侦听器应该从另一个类调用刷新方法。请给我一个想法。
谢谢
您可以使用现有的侦听器。在侦听器中或在您想要的任何位置从该类创建对象,然后调用该方法。