Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
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:gravity="center"
android:orientation="vertical"
android:paddingLeft="8dp"
android:paddingRight="8dp">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center">
<TextView
android:id="@+id/slidepanel_time_progress"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:singleLine="true"
android:text="00.00"
android:textColor="@android:color/white"
android:textSize="14sp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:text="/"
android:textColor="@android:color/white"
android:textSize="14sp" />
<TextView
android:id="@+id/slidepanel_time_total"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:paddingLeft="2dp"
android:paddingRight="2dp"
android:singleLine="true"
android:text="00.00"
android:textColor="@android:color/white"
android:textSize="20sp"
android:textStyle="bold" />
</LinearLayout>
<in.androidhunt.musicDEmo.view.Slider
android:id="@+id/audio_progress_control"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/slidepanel_time_total"
android:layout_toRightOf="@+id/slidepanel_time_progress"
android:background="@android:color/white"
android:max="100"
android:min="0" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="120dp"
android:gravity="center_vertical"
android:orientation="horizontal">
<ImageView
android:id="@+id/btn_backward"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/bar_selector_white"
android:gravity="center_vertical|right"
android:paddingBottom="15dp"
android:paddingTop="15dp"
android:src="@drawable/ic_rew_dark" />
<RelativeLayout
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1">
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.ohoussein.playpause.PlayPauseView
android:id="@+id/btn_play"
android:layout_width="60dp"
android:layout_height="60dp"
android:layout_centerInParent="true"
android:clickable="true"
android:stateListAnimator="@drawable/button_elevation"
/>
</RelativeLayout>
<RelativeLayout
android:id="@+id/pgPlayPauseLayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:clickable="true"
android:visibility="invisible">
<ProgressBar
android:id="@+id/pgPlayPause"
android:layout_width="match_parent"
android:layout_height="match_parent"
style="?android:attr/progressBarStyle"
android:layout_centerInParent="true" />
</RelativeLayout>
</RelativeLayout>
<ImageView
android:id="@+id/btn_forward"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/bar_selector_white"
android:gravity="center_vertical|right"
android:paddingBottom="15dp"
android:paddingTop="15dp"
android:src="@drawable/ic_fwd_dark" />
</LinearLayout>
</LinearLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment