[Solved] adapter = new ListLeaderBoardAdapter(this, mLeaderboardlist); [closed]


You can’t call this from fragment. replace this with getActivity().

change your code like this

adapter = new ListLeaderBoardAdapter(getActivity(), mLeaderboardlist);

1

solved adapter = new ListLeaderBoardAdapter(this, mLeaderboardlist); [closed]