Skip to content
This repository has been archived by the owner on Feb 8, 2022. It is now read-only.

How to set my adapter to the fragment? #339

Open
anton-rynkovyi opened this issue Jan 26, 2018 · 0 comments
Open

How to set my adapter to the fragment? #339

anton-rynkovyi opened this issue Jan 26, 2018 · 0 comments

Comments

@anton-rynkovyi
Copy link

I need to set my questionnaireAdapter to fragment. How can I do it?

@Nullable
@Override
public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
    view = inflater.inflate(R.layout.fragment_questionnaire_tab, container, false);
    mScrollView = view.findViewById(R.id.scrollView);
    questionnaireAdapter = new QuizAdapter(view.getContext(), initQuestionnaireList());
    
    return view;
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant