up next rework
* start playback, when up next episode is clicked * add playhead progress indicator to up next episodes
This commit is contained in:
		@ -115,7 +115,7 @@
 | 
			
		||||
                android:paddingBottom="7dp">
 | 
			
		||||
 | 
			
		||||
                <TextView
 | 
			
		||||
                    android:id="@+id/text_new_episodes"
 | 
			
		||||
                    android:id="@+id/text_up_next"
 | 
			
		||||
                    android:layout_width="match_parent"
 | 
			
		||||
                    android:layout_height="wrap_content"
 | 
			
		||||
                    android:paddingStart="10dp"
 | 
			
		||||
@ -127,7 +127,7 @@
 | 
			
		||||
                    android:textStyle="bold" />
 | 
			
		||||
 | 
			
		||||
                <androidx.recyclerview.widget.RecyclerView
 | 
			
		||||
                    android:id="@+id/recycler_new_episodes"
 | 
			
		||||
                    android:id="@+id/recycler_up_next"
 | 
			
		||||
                    android:layout_width="match_parent"
 | 
			
		||||
                    android:layout_height="match_parent"
 | 
			
		||||
                    android:orientation="horizontal"
 | 
			
		||||
 | 
			
		||||
@ -13,18 +13,43 @@
 | 
			
		||||
        android:layout_width="match_parent"
 | 
			
		||||
        android:layout_height="match_parent">
 | 
			
		||||
 | 
			
		||||
        <ImageView
 | 
			
		||||
            android:id="@+id/image_poster"
 | 
			
		||||
        <FrameLayout
 | 
			
		||||
            android:id="@+id/frame_image_progress"
 | 
			
		||||
            android:layout_width="0dp"
 | 
			
		||||
            android:layout_height="0dp"
 | 
			
		||||
            android:contentDescription="@string/media_poster_desc"
 | 
			
		||||
            android:scaleType="centerCrop"
 | 
			
		||||
            app:layout_constraintBottom_toTopOf="@+id/text_title"
 | 
			
		||||
            app:layout_constraintDimensionRatio="H,16:9"
 | 
			
		||||
            app:layout_constraintEnd_toEndOf="parent"
 | 
			
		||||
            app:layout_constraintStart_toStartOf="parent"
 | 
			
		||||
            app:layout_constraintTop_toTopOf="parent"
 | 
			
		||||
            tools:srcCompat="@color/md_disabled_text_dark_theme" />
 | 
			
		||||
            app:layout_constraintTop_toTopOf="parent">
 | 
			
		||||
 | 
			
		||||
            <ImageView
 | 
			
		||||
                android:id="@+id/image_poster"
 | 
			
		||||
                android:layout_width="match_parent"
 | 
			
		||||
                android:layout_height="match_parent"
 | 
			
		||||
                android:contentDescription="@string/media_poster_desc"
 | 
			
		||||
                android:scaleType="centerCrop"
 | 
			
		||||
                tools:srcCompat="@color/imagePlaceholder" />
 | 
			
		||||
 | 
			
		||||
            <ImageView
 | 
			
		||||
                android:id="@+id/image_episode_play"
 | 
			
		||||
                android:layout_width="wrap_content"
 | 
			
		||||
                android:layout_height="wrap_content"
 | 
			
		||||
                android:layout_gravity="center"
 | 
			
		||||
                android:background="@drawable/bg_circle__black_transparent_24dp"
 | 
			
		||||
                android:contentDescription="@string/button_play"
 | 
			
		||||
                app:srcCompat="@drawable/ic_baseline_play_arrow_24"
 | 
			
		||||
                app:tint="#FFFFFF" />
 | 
			
		||||
 | 
			
		||||
            <com.google.android.material.progressindicator.LinearProgressIndicator
 | 
			
		||||
                android:id="@+id/progress_playhead"
 | 
			
		||||
                android:layout_width="match_parent"
 | 
			
		||||
                android:layout_height="wrap_content"
 | 
			
		||||
                android:layout_gravity="bottom"
 | 
			
		||||
                android:max="100"
 | 
			
		||||
                app:trackColor="#00FFFFFF"
 | 
			
		||||
                app:trackThickness="2dp" />
 | 
			
		||||
        </FrameLayout>
 | 
			
		||||
 | 
			
		||||
        <TextView
 | 
			
		||||
            android:id="@+id/text_title"
 | 
			
		||||
@ -37,7 +62,7 @@
 | 
			
		||||
            android:text="@string/text_title_ex"
 | 
			
		||||
            android:textAlignment="center"
 | 
			
		||||
            android:textSize="15sp"
 | 
			
		||||
            app:layout_constraintTop_toBottomOf="@+id/image_poster" />
 | 
			
		||||
            app:layout_constraintTop_toBottomOf="@+id/frame_image_progress" />
 | 
			
		||||
    </androidx.constraintlayout.widget.ConstraintLayout>
 | 
			
		||||
 | 
			
		||||
</com.google.android.material.card.MaterialCardView>
 | 
			
		||||
@ -13,6 +13,7 @@
 | 
			
		||||
    <string name="new_simulcasts">New simulcasts</string>
 | 
			
		||||
    <string name="new_titles">New titles</string>
 | 
			
		||||
    <string name="top_ten">Top 10</string>
 | 
			
		||||
    <string name="season_episode_title" translatable="false">S%1$d E%2$d - %3$s</string>
 | 
			
		||||
 | 
			
		||||
    <!-- search fragment -->
 | 
			
		||||
    <string name="search_hint">Search for movies and series</string>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user