2017-10-02 23:38:46 -07:00
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android= "http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/main_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context="org.schabi.newpipe.player.BackgroundPlayerActivity">
<android.support.design.widget.AppBarLayout
android:id="@+id/appbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
app:popupTheme="@style/ThemeOverlay.AppCompat.ActionBar">
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_weight="1"
android:background="?attr/colorPrimary"
app:layout_scrollFlags="scroll|enterAlways"
app:title="@string/app_name"/>
</android.support.design.widget.AppBarLayout>
<android.support.v7.widget.RecyclerView
android:id="@+id/play_queue"
android:layout_width="match_parent"
android:layout_height="match_parent"
2017-10-26 19:59:25 -07:00
android:layout_below="@id/appbar"
android:layout_above="@id/center"
2017-10-02 23:38:46 -07:00
android:scrollbars="vertical"
app:layoutManager="LinearLayoutManager"
tools:listitem="@layout/play_queue_item"/>
2017-10-26 19:59:25 -07:00
<RelativeLayout
2017-10-02 23:38:46 -07:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-26 19:59:25 -07:00
android:id="@+id/center"
2017-10-28 10:08:01 -07:00
android:layout_above="@+id/playback_controls">
2017-10-02 23:38:46 -07:00
2017-10-26 19:59:25 -07:00
<LinearLayout
android:id="@+id/metadata"
2017-10-28 10:08:01 -07:00
android:layout_width="match_parent"
2017-10-02 23:38:46 -07:00
android:layout_height="wrap_content"
2017-10-26 19:59:25 -07:00
android:orientation="vertical"
android:padding="8dp"
android:clickable="true"
android:focusable="true"
android:background="?attr/selectableItemBackground"
tools:ignore="RtlHardcoded,RtlSymmetry">
<TextView
android:id="@+id/song_name"
style="@android:style/TextAppearance.StatusBar.EventContent.Title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-28 10:08:01 -07:00
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
2017-10-26 19:59:25 -07:00
android:textSize="14sp"
android:textColor="?attr/colorAccent"
tools:text="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis nec aliquam augue, eget cursus est. Ut id tristique enim, ut scelerisque tellus. Sed ultricies ipsum non mauris ultricies, commodo malesuada velit porta."
/>
<TextView
android:id="@+id/artist_name"
style="@android:style/TextAppearance.StatusBar.EventContent"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-28 10:08:01 -07:00
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:marqueeRepeatLimit="marquee_forever"
android:scrollHorizontally="true"
android:singleLine="true"
2017-10-26 19:59:25 -07:00
android:textSize="12sp"
tools:text="Duis posuere arcu condimentum lobortis mattis."/>
</LinearLayout>
2017-10-02 23:38:46 -07:00
<TextView
2017-10-26 19:59:25 -07:00
android:id="@+id/seek_display"
android:layout_width="wrap_content"
2017-10-02 23:38:46 -07:00
android:layout_height="wrap_content"
2017-10-26 19:59:25 -07:00
android:layout_centerInParent="true"
android:background="#c0000000"
android:paddingBottom="5dp"
android:paddingLeft="30dp"
android:paddingRight="30dp"
android:paddingTop="5dp"
android:textColor="@android:color/white"
android:textSize="22sp"
android:textStyle="bold"
android:visibility="gone"
tools:ignore="RtlHardcoded"
tools:text="1:06:29"
tools:visibility="visible"/>
</RelativeLayout>
2017-10-02 23:38:46 -07:00
<LinearLayout
android:id="@+id/progress_bar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2017-10-28 10:08:01 -07:00
android:layout_alignParentBottom="true"
2017-10-02 23:38:46 -07:00
android:gravity="center"
android:orientation="horizontal"
2017-10-28 10:08:01 -07:00
android:paddingLeft="12dp"
android:paddingRight="12dp"
android:background="@drawable/player_controls_bg">
2017-10-02 23:38:46 -07:00
<TextView
android:id="@+id/current_time"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:minHeight="40dp"
android:text="-:--:--"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
tools:text="1:06:29"/>
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/seek_bar"
style="@style/Widget.AppCompat.SeekBar"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
2017-10-28 10:08:01 -07:00
android:paddingStart="12dp"
android:paddingEnd="12dp"
2017-10-02 23:38:46 -07:00
android:paddingBottom="4dp"
2017-10-28 10:08:01 -07:00
android:paddingTop="6dp"
2017-10-02 23:38:46 -07:00
tools:progress="25"
tools:secondaryProgress="50"/>
<TextView
android:id="@+id/end_time"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="-:--:--"
android:textColor="?attr/colorAccent"
tools:ignore="HardcodedText"
tools:text="1:23:49"/>
2018-02-26 19:57:59 -08:00
<TextView
android:id="@+id/live_sync"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:gravity="center"
android:text="@string/live_sync"
android:textColor="?attr/colorAccent"
android:background="?attr/selectableItemBackground"
android:visibility="gone"/>
2017-10-02 23:38:46 -07:00
</LinearLayout>
<RelativeLayout
android:id="@+id/playback_controls"
android:layout_width="match_parent"
2017-10-28 10:08:01 -07:00
android:layout_height="wrap_content"
android:layout_above="@+id/progress_bar"
2017-10-02 23:38:46 -07:00
android:orientation="horizontal"
tools:ignore="RtlHardcoded">
2017-10-09 19:52:23 -07:00
<TextView
android:id="@+id/control_playback_speed"
android:layout_width="wrap_content"
android:layout_height="35dp"
2017-10-28 10:08:01 -07:00
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
2017-10-09 19:52:23 -07:00
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/control_repeat"
android:gravity="center"
android:minWidth="50dp"
android:text="1x"
2017-10-28 10:08:01 -07:00
android:textColor="?attr/colorAccent"
2017-10-09 19:52:23 -07:00
android:textStyle="bold"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackground"
2017-10-09 19:52:23 -07:00
tools:ignore="HardcodedText,RtlHardcoded"/>
2017-10-02 23:38:46 -07:00
<ImageButton
android:id="@+id/control_repeat"
2017-10-28 10:08:01 -07:00
android:layout_width="30dp"
android:layout_height="30dp"
2017-10-09 18:20:11 -07:00
android:layout_toLeftOf="@+id/control_backward"
2017-10-02 23:38:46 -07:00
android:layout_centerVertical="true"
2017-10-09 18:20:11 -07:00
android:layout_marginLeft="5dp"
2017-10-28 10:08:01 -07:00
android:layout_marginRight="5dp"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackgroundBorderless"
2017-10-02 23:38:46 -07:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitXY"
2017-10-28 10:08:01 -07:00
android:tint="?attr/colorAccent"
2017-10-02 23:38:46 -07:00
android:src="@drawable/ic_repeat_white"
2017-10-09 18:20:11 -07:00
tools:ignore="ContentDescription"/>
2017-10-02 23:38:46 -07:00
<ImageButton
android:id="@+id/control_backward"
android:layout_width="40dp"
2017-10-28 10:08:01 -07:00
android:layout_height="40dp"
2017-10-02 23:38:46 -07:00
android:layout_centerVertical="true"
2017-10-09 18:20:11 -07:00
android:layout_marginLeft="5dp"
2017-10-02 23:38:46 -07:00
android:layout_toLeftOf="@+id/control_play_pause"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackgroundBorderless"
2017-10-02 23:38:46 -07:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitCenter"
2017-10-28 10:08:01 -07:00
android:tint="?attr/colorAccent"
2017-10-22 18:58:01 -07:00
android:src="@drawable/exo_controls_previous"
2017-10-02 23:38:46 -07:00
tools:ignore="ContentDescription"/>
<ImageButton
android:id="@+id/control_play_pause"
android:layout_width="50dp"
2017-10-28 10:08:01 -07:00
android:layout_height="50dp"
2017-10-02 23:38:46 -07:00
android:layout_centerVertical="true"
2017-10-09 18:20:11 -07:00
android:layout_centerHorizontal="true"
android:layout_marginLeft="5dp"
2017-10-02 23:38:46 -07:00
android:layout_marginRight="5dp"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackgroundBorderless"
2017-10-02 23:38:46 -07:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitCenter"
2017-10-28 10:08:01 -07:00
android:tint="?attr/colorAccent"
2017-10-02 23:38:46 -07:00
android:src="@drawable/ic_pause_white"
tools:ignore="ContentDescription"/>
2017-10-12 17:02:07 -07:00
<ProgressBar
android:id="@+id/control_progress_bar"
style="?android:attr/progressBarStyleLargeInverse"
android:layout_width="50dp"
2017-10-28 10:08:01 -07:00
android:layout_height="50dp"
2017-10-12 17:02:07 -07:00
android:layout_centerVertical="true"
android:layout_centerHorizontal="true"
android:layout_centerInParent="true"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:background="#00000000"
2017-10-28 10:08:01 -07:00
android:tint="?attr/colorAccent"
2017-10-12 17:02:07 -07:00
android:padding="2dp"
android:clickable="false"
android:scaleType="fitCenter"
android:indeterminate="true"
2017-10-28 10:08:01 -07:00
android:visibility="invisible"
tools:visibility="visible"/>
2017-10-12 17:02:07 -07:00
2017-10-02 23:38:46 -07:00
<ImageButton
android:id="@+id/control_forward"
android:layout_width="40dp"
2017-10-28 10:08:01 -07:00
android:layout_height="40dp"
2017-10-02 23:38:46 -07:00
android:layout_centerVertical="true"
2017-10-09 18:20:11 -07:00
android:layout_marginRight="5dp"
android:layout_toRightOf="@+id/control_play_pause"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackgroundBorderless"
2017-10-02 23:38:46 -07:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitCenter"
2017-10-28 10:08:01 -07:00
android:tint="?attr/colorAccent"
2017-10-22 18:58:01 -07:00
android:src="@drawable/exo_controls_next"
2017-10-02 23:38:46 -07:00
tools:ignore="ContentDescription"/>
2017-10-09 18:20:11 -07:00
<ImageButton
android:id="@+id/control_shuffle"
2017-10-28 10:08:01 -07:00
android:layout_width="30dp"
android:layout_height="30dp"
2017-10-09 18:20:11 -07:00
android:layout_toRightOf="@+id/control_forward"
android:layout_centerVertical="true"
2017-10-28 10:08:01 -07:00
android:layout_marginLeft="5dp"
2017-10-09 18:20:11 -07:00
android:layout_marginRight="5dp"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackgroundBorderless"
2017-10-09 18:20:11 -07:00
android:clickable="true"
android:focusable="true"
android:scaleType="fitXY"
2017-10-28 10:08:01 -07:00
android:tint="?attr/colorAccent"
2017-10-11 21:16:28 -07:00
android:src="@drawable/ic_shuffle_white_24dp"
2017-10-09 18:20:11 -07:00
tools:ignore="ContentDescription"/>
2017-10-09 19:52:23 -07:00
<TextView
android:id="@+id/control_playback_pitch"
android:layout_width="wrap_content"
android:layout_height="35dp"
2017-10-28 10:08:01 -07:00
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
2017-10-09 19:52:23 -07:00
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/control_shuffle"
android:gravity="center"
android:minWidth="50dp"
android:text="100%"
2017-10-28 10:08:01 -07:00
android:textColor="?attr/colorAccent"
2017-10-09 19:52:23 -07:00
android:textStyle="bold"
2017-10-26 19:59:25 -07:00
android:background="?attr/selectableItemBackground"
2017-10-09 19:52:23 -07:00
tools:ignore="HardcodedText,RtlHardcoded"/>
2017-10-02 23:38:46 -07:00
</RelativeLayout>
</RelativeLayout>