access activity layout from adapter android code example
Example: access activity method from adapter
if (mContext instanceof YourActivityName) {
((YourActivityName)mContext).yourDesiredMethod();
if (mContext instanceof YourActivityName) {
((YourActivityName)mContext).yourDesiredMethod();