【问题标题】:How to unbind a service in Adapter instead of Fragment or Activity如何在适配器而不是片段或活动中取消绑定服务 【发布时间】:2017-02-28 17:37:26 【问题描述】: 当服务绑定在适配器而不是片段或活动中时,如何取消绑定服务? (因为 onDestroy() 在 Adapter 中不可用) 【问题讨论】: Try to check inside this link hope that will work for u 标签: android 【解决方案1】: 在Adapter中创建一个公共方法unbind并在onDestroy()中的Activity中调用它? 【讨论】: