I am implementing this method:
homeFragment.mAdapter = new MembersAdapter(MainActivity.this,homeFragment.membersList);
MainActivity
is the activity which is having fragment HomeFragment
. If we want this method for mainActivity itself then above method is right but if we want this method for fragment but the method is in MainActivity then what to pass?
I want something like:
homeFragment.mAdapter = new MembersAdapter(HomeFragment.this,homeFragment.membersList);
The method is in MainActivity.