Skip to content
Snippets Groups Projects
Commit da429a97 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy
Browse files

Add the audio player safety gradients

parent 77e95e8a
No related branches found
Tags 2.8.9 tv1.1.3
1 merge request!1051New audio player cover design
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:angle="90" android:startColor="@color/white_transparent_80" android:endColor="@color/transparent"/>
</shape>
\ No newline at end of file
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:angle="90" android:startColor="@color/black_transparent_80" android:endColor="@color/transparent"/>
</shape>
\ No newline at end of file
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:angle="270" android:startColor="@color/white_transparent_80" android:endColor="@color/transparent"/>
</shape>
\ No newline at end of file
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<gradient android:angle="270" android:startColor="@color/black_transparent_80" android:endColor="@color/transparent"/>
</shape>
\ No newline at end of file
......@@ -72,6 +72,8 @@
<attr name="fast_scroller_bubble" format="reference" />
<attr name="fast_scroller_handle" format="reference" />
<attr name="empty_title" format="color" />
<attr name="audio_player_gradient_bottom" format="reference" />
<attr name="audio_player_gradient_top" format="reference" />
<attr name="tips_item_background" format="color" />
<!--Main Icons-->
......
......@@ -41,6 +41,39 @@
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/bottom_gradient"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="?attr/audio_player_gradient_bottom"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/guideline8" />
<View
android:id="@+id/top_gradient"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="?attr/audio_player_gradient_top"
app:layout_constraintBottom_toBottomOf="@id/guideline9"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.65" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.3" />
<ProgressBar
android:id="@+id/progressBar"
style="@android:style/Widget.ProgressBar.Horizontal"
......
......@@ -41,6 +41,39 @@
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<View
android:id="@+id/bottom_gradient"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="?attr/audio_player_gradient_bottom"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/guideline8" />
<View
android:id="@+id/top_gradient"
android:layout_width="0dp"
android:layout_height="0dp"
android:background="?attr/audio_player_gradient_top"
app:layout_constraintBottom_toBottomOf="@id/guideline9"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.65" />
<androidx.constraintlayout.widget.Guideline
android:id="@+id/guideline9"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.3" />
<ProgressBar
android:id="@+id/progressBar"
style="@android:style/Widget.ProgressBar.Horizontal"
......
......@@ -111,6 +111,8 @@
<item name="audio_chip_background">@drawable/rounded_corners_audio</item>
<item name="audio_chip_text_color">@color/white_transparent_60</item>
<item name="empty_title">@color/grey850</item>
<item name="audio_player_gradient_bottom">@drawable/gradient_audio_player_bottom</item>
<item name="audio_player_gradient_top">@drawable/gradient_audio_player_top</item>
<item name="tips_item_background">@color/grey300</item>
</style>
......@@ -269,6 +271,8 @@
<item name="audio_chip_background">@drawable/rounded_corners_audio_dark</item>
<item name="audio_chip_text_color">@color/black_transparent_60</item>
<item name="empty_title">@color/grey300</item>
<item name="audio_player_gradient_bottom">@drawable/gradient_audio_player_bottom_dark</item>
<item name="audio_player_gradient_top">@drawable/gradient_audio_player_top_dark</item>
<item name="tips_item_background">@color/grey900</item>
</style>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment