Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. private void bindView(View view) {
  2. recyclerView = view.findViewById(R.id.recyclerview);
  3. mLayoutManager = new LinearLayoutManager(context);
  4. ((LinearLayoutManager) mLayoutManager).setOrientation(LinearLayoutManager.HORIZONTAL);
  5. mAdapter = new QuizQuestionAdap(context, this);
  6. SnapHelper snapHelper = new PagerSnapHelper();
  7. snapHelper.attachToRecyclerView(recyclerView);
  8. recyclerView.setLayoutManager(mLayoutManager);
  9. recyclerView.setAdapter(mAdapter);
  10.  
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement