title: How to design custom seekbar and volume control for ExoPlayer in Android
body: <p>I have tried <a href="https://stackoverflow.com/questions/24772985/how-can-i-design-the-custom-seekbar-in-android">this</a> and <a href="http://www.androidhive.info/2012/03/android-building-audio-player-tutorial/" rel="noreferrer">this</a> for Design Custom Seekbar for ExoPlayer but no luck.</p>
  
  <p>I want to design custom thumb and ProgressBar for ExoPlayer. Following is the XML for ExoPlayer where I've tried to put seekbar but it's not coming as expected.</p>
  
  <pre><code>&lt;com.google.android.exoplayer.AspectRatioFrameLayout
          android:id="@+id/video_frame"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_gravity="center"&gt;
  
          &lt;SurfaceView
              android:id="@+id/surface_view"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:layout_gravity="center"/&gt;
  
          &lt;View
              android:id="@+id/shutter"
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:background="@android:color/black"/&gt;
          &lt;SeekBar
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:thumb="@drawable/thumb"/&gt;
  
          &lt;com.google.android.exoplayer.text.SubtitleLayout
              android:id="@+id/subtitles"
              android:layout_width="match_parent"
              android:layout_height="match_parent"/&gt;
  
      &lt;/com.google.android.exoplayer.AspectRatioFrameLayout&gt;
  </code></pre>
  
  <p>One more question is how can I have custom volume controls for ExoPlayer like we have it in <a href="https://play.google.com/store/apps/details?id=com.mxtech.videoplayer.ad&amp;hl=en" rel="noreferrer">MXPlayer</a> (vertical bar for volume).</p>
  
  <h3>Update</h3>
  
  <p>I have got the <code>SeekBar</code> using this method.</p>
  
  <pre><code>SeekBar seekBar = (SeekBar) mediaController.findViewById(getResources().getIdentifier("mediacontroller_progress","id","android"));
  seekBar.setThumb(getResources().getDrawable(R.drawable.player_thumb));
  </code></pre>
  
  <p>Now the only thing is to get vertical volume control like <a href="https://play.google.com/store/apps/details?id=com.mxtech.videoplayer.ad" rel="noreferrer">MXPlayer</a>.</p>