Answers for "from adapter get activity"

1

access activity method from adapter

if (mContext instanceof YourActivityName) {
	((YourActivityName)mContext).yourDesiredMethod();
Posted by: Guest on November-06-2020
0

call activity method from adapter

if (mContext instanceof YourActivityName) {
  ((YourActivityName)mContext).yourDesiredMethod();
}
Posted by: Guest on December-16-2020

Code answers related to "from adapter get activity"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language