title: Horizontal RecyclerView doesn't scroll in Android 7?
body: <p>I am trying to add a horizontal view in an activity, this view have a button to add image and then a list of added images, I used this code.</p>
  
  <p>.XML file</p>
  
  <pre><code>&lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:orientation="vertical"&gt;
  
         &lt;!-- some views--&gt;
  
          &lt;HorizontalScrollView
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:layout_marginEnd="@dimen/activity_horizontal_margin"
              android:layout_marginLeft="@dimen/activity_horizontal_margin"
              android:layout_marginRight="@dimen/activity_horizontal_margin"
              android:layout_marginStart="@dimen/activity_horizontal_margin"
              android:layout_marginTop="5dp"&gt;
  
              &lt;LinearLayout
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:orientation="horizontal"&gt;
  
                  &lt;ImageView
                      android:id="@+id/btn_add_image"
                      android:layout_width="120dp"
                      android:layout_height="120dp"
                      android:layout_marginEnd="10dp"
                      android:layout_marginRight="10dp"
                      android:background="@drawable/rectangle_border_gray"
                      android:padding="20dp"
                      android:src="@drawable/add_grey" /&gt;
  
                  &lt;FrameLayout
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"&gt;
  
                      &lt;android.support.v7.widget.RecyclerView
                          android:id="@+id/recycler_view"
                          android:layout_width="match_parent"
                          android:layout_height="wrap_content" /&gt;
  
                  &lt;/FrameLayout&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/HorizontalScrollView&gt;        
  
         &lt;!-- some views--&gt;
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>Java file</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_add_book);
  
      ...
      ...
      recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
      LinearLayoutManager layoutManager = new LinearLayoutManager(mContext, 
      LinearLayoutManager.HORIZONTAL, false);
      recyclerView.setLayoutManager(layoutManager);
      mAdapter = new ImagesAdapter();
      recyclerView.setAdapter(mAdapter);
  }
  </code></pre>
  
  <p>This code is working very well in android M and below but the <a href="/questions/tagged/recyclerview" class="post-tag" title="show questions tagged &#39;recyclerview&#39;" rel="tag">recyclerview</a> doesn't scroll in Android N, I looked to more answers but I didn't find a way to help me to solve this.<br>
  any help, please.</p>