title: Seekbar on top of view
body: <p>I am trying to implement a seekbar on top of a view like in Google Play Music app. I couldn't find answer for this anywhere.I tried negative marginBottom but the thumb was getting cut off. I found a similar post on SO <a href="https://stackoverflow.com/questions/20952966/seekbar-at-the-top-of-the-layout-in-android">SeekBar at the top of the layout in Android</a> but with no answer so had to post this. Please help. Reference image from Google play music below.</p>
  
  <p><a href="https://i.stack.imgur.com/YnVwp.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YnVwp.jpg" alt="Reference image"></a></p>
  
  <pre><code> &lt;FrameLayout
      android:id="@+id/rl_pager"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      &gt;
  
      &lt;ViewPager
          android:id="@+id/album_art_viewpager"
          android:layout_width="match_parent"
          android:layout_height="match_parent"/&gt;
  
  
         &lt;SeekBar
          android:id="@+id/songProgressBar1"
          android:layout_width="fill_parent"
          android:layout_height="wrap_content"
          android:layout_marginRight="-5dp"
          android:layout_marginLeft="-5dp"
          android:layout_gravity="bottom"
          android:layout_marginBottom="-5dp"
          android:progressDrawable="@drawable/apptheme_scrubber_progress_horizontal_holo_dark"
          android:thumb= "@drawable/seekbar_thumb"
          /&gt;
  
      &lt;!--&lt;View
      &lt;!--    android:layout_width="match_parent"
       &lt;!--   android:layout_height="1dp"
      &lt;!--    android:layout_gravity="bottom"
      &lt;!--    android:background="@android:color/transparent"
       &lt;!--   /&gt;   // Commenting this as this is not bottom view in my case
  
  &lt;/FrameLayout&gt;
  </code></pre>
  
  <p>Bottom View :</p>
  
  <pre><code> &lt;RelativeLayout
      android:id="@+id/player_footer_bg"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_alignParentBottom="true"
  
      android:layout_below="@+id/rl_pager"&gt;
  
      &lt;ImageButton
          android:id="@+id/btnPlay"
          android:layout_width="@dimen/audio_player_btn_play_dimensions"
          android:layout_height="@dimen/audio_player_btn_play_dimensions"
          android:layout_marginBottom="10dp"
          android:background="@null"
          android:contentDescription="@string/play"
          android:src="@drawable/play"
          android:layout_alignParentBottom="true"
          android:layout_centerHorizontal="true" /&gt;
  
  
      &lt;ImageButton
          android:id="@+id/btnNext"
          android:layout_width="@dimen/audio_player_btn_play_dimensions"
          android:layout_height="@dimen/audio_player_btn_play_dimensions"
          android:background="@null"
          android:contentDescription="@string/next"
          android:src="@drawable/ic_skip_white"
          android:focusable="true"
          android:scaleType="fitCenter"
          android:layout_alignTop="@+id/btnPlay"
          android:layout_alignParentRight="true"
          android:layout_alignParentEnd="true"
          android:layout_marginRight="60dp"
          android:layout_marginEnd="60dp" /&gt;
  
  
      &lt;ImageButton
          android:id="@+id/btnPrevious"
          android:layout_width="@dimen/audio_player_btn_play_dimensions"
          android:layout_height="@dimen/audio_player_btn_play_dimensions"
          android:background="@null"
          android:contentDescription="@string/next"
          android:src="@drawable/ic_prev_white"
          android:focusable="true"
          android:scaleType="fitCenter"
          android:layout_alignTop="@+id/btnNext"
           android:layout_marginLeft="60dp"
          android:layout_marginStart="60dp" /&gt;
  
  
  &lt;/RelativeLayout&gt;
  </code></pre>