title: Horizontal RecyclerView with starting padding
body: <p>So I have an ImageView as a background and on top of it an Horizontal RecyclerView, the thing here is that I want the RecyclerView to start showing its items from half padding of the screen to the left so you can see the background perfectly at the beginning and when you scroll the items you'd be hiding the image/background.</p>
  
  <p>Note: check Play Store to see what I'm trying to accomplish.</p>
  
  <p><a href="https://i.stack.imgur.com/sDHGd.png" rel="noreferrer"><img src="https://i.stack.imgur.com/sDHGd.png" alt="enter image description here"></a></p>
  
  <p>So I had this working: </p>
  
  <pre><code>&lt;RelativeLayout
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:background="#000052"
   android:orientation="vertical" &gt;
  
         &lt;ImageView
          android:layout_width="wrap_content"
          android:layout_height="200dp"
          android:scaleType="centerCrop"
          android:src="@drawable/trybg5"
          android:layout_gravity="left" /&gt;
  
                &lt;HorizontalScrollView
                 android:id="@+id/frag_home_gallery_recent_container"
                 android:layout_width="match_parent"
                 android:layout_height="wrap_content"
                 android:orientation="horizontal"
                 android:layout_gravity="right"
                 android:scrollbars="none"
                 android:layout_weight="1"
                 android:paddingBottom="@dimen/horizontalGallery_content_padding"
                 android:paddingTop="@dimen/horizontalGallery_content_padding"&gt;
  
  
                   &lt;LinearLayout
                    android:id="@+id/frag_home_gallery_recientes"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:orientation="horizontal"
                    android:paddingLeft="150dp" /&gt;
               &lt;/HorizontalScrollView&gt;
      &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>My point there was to programmatically inflate the layout inside the HorizontalScrollView, and it worked nicely. But with the time, I decided to migrate to RecyclerView and now isn't working as expected.</p>
  
  <p>The background appears, the Recycler starts half screen to the right, but when scrolling it won't scroll until the left of the screen, it will just hide wherever the padding was set..</p>
  
  <pre><code>&lt;RelativeLayout
   android:layout_width="match_parent"
   android:layout_height="wrap_content"
   android:background="#000052"
   android:orientation="vertical" &gt;
  
     &lt;ImageView
      android:layout_width="wrap_content"
      android:layout_height="200dp"
      android:scaleType="centerCrop"
      android:src="@drawable/trybg5"
      android:layout_gravity="left" /&gt;
  
            &lt;FrameLayout
                      android:id="@+id/frag_home_gallery_recent_container"
                      android:layout_width="match_parent"
                      android:layout_height="wrap_content"
                      android:orientation="horizontal"
                      android:layout_gravity="right"
                      android:scrollbars="none"
                      android:layout_weight="1"
                      android:paddingBottom="@dimen/horizontalGallery_content_padding"
                      android:paddingTop="@dimen/horizontalGallery_content_padding"&gt;
  
                      &lt;android.support.v7.widget.RecyclerView
                          android:background="@drawable/gallery_bg"
                          android:id="@+id/frag_home_gallery_recientes"
                          android:scrollbars="none"
                          android:paddingLeft="150dp"
                          android:layout_width="wrap_content"
                          android:layout_height="wrap_content"
                           /&gt;
  
                  &lt;/FrameLayout&gt;
            &lt;/RelativeLayout&gt;
  </code></pre>
  
  <p>Any idea of how can I make this effect work in the RecyclerView?</p>
  
  <p>Here's the detail of the recycler:</p>
  
  <pre><code>&lt;LinearLayout
      xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:clickable="true"
      android:id="@+id/discoContainer"
      android:background="@drawable/gallery_bg"
      android:layout_margin="5dp"
      android:padding="2dp"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:id="@+id/containerDisco"
          android:orientation="vertical"&gt;
  
          &lt;RelativeLayout
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"&gt;
              &lt;ImageView
                  android:id="@+id/logoDisco"
                  android:transitionName="DiscoId"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:scaleType="centerCrop"
                  android:contentDescription="LogoDisco"
                  android:windowSharedElementsUseOverlay="false" /&gt;
              &lt;TextView
                  android:layout_width="match_parent"
                  android:layout_height="wrap_content"
                  android:text="a 600m tuyos"
                  android:padding="3dp"
                  android:layout_gravity="center_horizontal"
                  android:maxLines="1"
                  android:gravity="center_horizontal"
                  android:alpha="500"
                  android:background="#46000000"
                  android:textColor="@android:color/white"/&gt;
          &lt;/RelativeLayout&gt;
  
          &lt;TextView
              android:id="@+id/logoTexto"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:text="Probando"
              android:padding="3dp"
              android:layout_gravity="center_horizontal"
              android:maxLines="1"
              android:gravity="center_horizontal"
              android:layout_alignBottom="@+id/containerDisco" /&gt;
  
      &lt;/LinearLayout&gt;
  
  
  &lt;/LinearLayout&gt;
  </code></pre>