access activity method from adapter

Solutions on MaxInterview for access activity method from adapter by the best coders in the world

showing results for - "access activity method from adapter"
Andrea
14 Apr 2017
1if (mContext instanceof YourActivityName) {
2	((YourActivityName)mContext).yourDesiredMethod();
3    
4
Paulina
22 May 2019
1if (mContext instanceof YourActivityName) {
2  ((YourActivityName)mContext).yourDesiredMethod();
3}