- Sometimes we need to update/call activity method from adapter
mContext = your activity context passed from activity
through adapter's constructor
if (mContext instanceof YourActivity) { ((YourActivity) mContext).activityMethod(); }
mContext = your activity context passed from activity
through adapter's constructor
if (mContext instanceof YourActivity) { ((YourActivity) mContext).activityMethod(); }
Comments
Post a Comment
Thanks, I'll respond you soon!