阅读背景:

无法在Fragment中调用OnClickListener

来源:互联网 

My Button is linked to an OnClickListener which implemented some code to be executed if the button is clicked. When I did this in an Activity class, it works out flawlessly. However, in Fragment, this doesn't seem to be the case. Why does OnClickListener cannot be called inside a Fragment? My Button is linked to an OnClickListener which




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: