I have an android project that basically deals with an application for downloading and watching videos online, I was using a custom code from a video controller for the player I got on the internet, but I decided to create my own to be able to do better I am trying to create something similar to the netflix player (example image below) where the buttons pause and forward and fast rewind screen in the middle of the screen while the controllers at the bottom of the screen:
Myxml:
<?xmlversion="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="center">
<ImageButton
android:id="@+id/vp_fast_rewind"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_rw_10" />
<ImageButton
android:id="@+id/vp_btn_PlayPause"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_pause_circle_outline" />
<ImageButton
android:id="@+id/vp_fast_forward"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="0.8"
android:background="@android:color/transparent"
app:srcCompat="@drawable/ic_ffw_10" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_gravity="bottom">
<TextView
android:id="@+id/vp_initialTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<SeekBar
android:id="@+id/vp_timeline"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/vp_finalTime"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
</LinearLayout>
</LinearLayout>
But all the child layouts elements are getting on top: