title: Disable Android's RecylerView scroll and fling
body: <p>I am attempting to implement a RecylerView that shows 1 CardView on the screen at a time and is controlled through two left and right arrow ImageButtons. I do not want to let the user scroll through the RecyclerView by themselves. How can I disable a RecylerView's scroll and fling features?</p>
  
  <p>Here is where I initialize the View with a LinearLayoutManager</p>
  
  <pre><code>    final LinearLayoutManager llm = new LinearLayoutManager(this);
  
      llm.setOrientation(LinearLayoutManager.HORIZONTAL);
  
      final RecyclerView recList = (RecyclerView) findViewById(R.id.card_holder);
      recList.setHasFixedSize(true);
      recList.setLayoutManager(llm);
  </code></pre>
  
  <p>And here is where I set up the left and right scroll buttons</p>
  
  <pre><code>  ImageButton rightClick = (ImageButton) findViewById(R.id.rightClick);
    ImageButton leftClick = (ImageButton) findViewById(R.id.leftClick);
  
  
      rightClick.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              int position = llm.findFirstVisibleItemPosition();
              if(position != recList.getAdapter().getItemCount() - 1) {
                  markers[position + 1].showInfoWindow();
                  GMap.moveCamera(CameraUpdateFactory.newLatLngZoom(result.get(position + 1).latlng, 17.0f));
                  recList.smoothScrollToPosition(llm.findFirstVisibleItemPosition() + 1);
              }
          }
      });
  
      leftClick.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
              int position = llm.findFirstVisibleItemPosition();
              if(position != 0) {
                  GMap.moveCamera(CameraUpdateFactory.newLatLngZoom(result.get(llm.findFirstVisibleItemPosition() - 1).latlng, 17.0f));
                  recList.smoothScrollToPosition(llm.findFirstVisibleItemPosition() - 1);
              }
          }
      });
  </code></pre>