title: not able to scroll data with recycler view
body: <p>How do i implement scrolling functionality with recyclerview. find the code snippet below.</p>
  
  <p>quiztab.xml </p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;RelativeLayout
  android:id="@+id/quiz_layout"
  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:app="http://schemas.android.com/apk/res-auto"
  android:layout_width="match_parent" android:orientation="vertical"
  android:layout_height="match_parent"&gt;
  &lt;android.support.v7.widget.RecyclerView
      android:id="@+id/recyclerView"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:fitsSystemWindows="true"
      app:layout_behavior="@string/appbar_scrolling_view_behavior"/&gt;
  &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>quiztab_mcq.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"
          android:layout_marginLeft="20dp"
          android:layout_marginRight="20dp"&gt;
  
          &lt;LinearLayout
              android:id="@+id/mcq"
              android:orientation="vertical"
              android:layout_marginTop="@dimen/activity_horizontal_margin"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"&gt;
          &lt;/LinearLayout&gt;
  
          &lt;LinearLayout
             android:layout_marginTop="20dp"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:gravity="center"&gt;
  
              &lt;Button
                  android:layout_width="120dp"
                  android:layout_height="wrap_content"
                  android:text="Submit"
                  android:id="@+id/submitButton"
                  android:textSize="18sp"
                  android:textColor="@color/colorWhite"
                  android:textAllCaps="false"
                  android:background="@color/colorPrimary"/&gt;
  
          &lt;/LinearLayout&gt;
  
      &lt;/LinearLayout&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>QuizTab.java</p>
  
  <pre><code>@SuppressLint("ValidFragment")
  public class QuizTab extends Fragment {
      private static final String TAG = "QuizTab";
      RecyclerView recyclerView;
      View view;
      LinearLayout linearLayout;
      List&lt;Integer&gt; usr_opts;
      RadioGroup rg;
  
      @Nullable
      @Override
      public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
          view = inflater.inflate(R.layout.quiztab, container, false);
          recyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
          getQuizContent();
          setupRecyclerView(recyclerView);
          return view;
      }
  
      private void setupRecyclerView(RecyclerView recyclerView) {
          recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()));
          recyclerView.setAdapter(new SimpleStringRecyclerViewAdapter(getActivity(),
                  VersionModel.data));
      }
  
      public class SimpleStringRecyclerViewAdapter extends RecyclerView.Adapter&lt;SimpleStringRecyclerViewAdapter.ViewHolder&gt; {
          private String[] mValues;
          private Context mContext;
  
          public class ViewHolder extends RecyclerView.ViewHolder {
              public final LinearLayout mLinearlayout;
              public ViewHolder(View view) {
                  super(view);
                  mLinearlayout = (LinearLayout) view.findViewById(R.id.mcq);
              }
  
          }
  
          public String getValueAt(int position) {
              return mValues[position];
          }
          public SimpleStringRecyclerViewAdapter(Context context, String[] items) {
              mContext = context;
              mValues = items;
          }
  
          @Override
          public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
              View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.quiztab_mcq, parent, false);
              return new ViewHolder(view);
          }
  
          @Override
          public void onBindViewHolder(final ViewHolder holder, final int position) {
   holder.mLinearlayout.addView(rg);
  
              }
  
          }
          @Override
          public int getItemCount() {
              return 1;
          }
      }
  }
  </code></pre>
  
  <p>With the above i am trying to inflate quiztab_mcq.xml into quiztab.xml, but the content on page is not scrollable. my submit button is not visible on smaller dimension phones. It works fine with 5.5 inch phone but not on smaller dimension.</p>
  
  <p><a href="https://i.stack.imgur.com/0jVZY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0jVZY.png" alt="enter image description here"></a></p>