SHARE
TWEET

Untitled

a guest Jun 19th, 2019 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top