[Android] Use the same UI improvements for audio player playlist
Nicolas Pomepuy
git at videolan.org
Tue Jul 2 11:03:39 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Tue Jul 2 08:47:24 2019 +0200| [a66aa5b654fbc1043ee5682a63b57d7e4df8ee3d] | committer: Nicolas Pomepuy
Use the same UI improvements for audio player playlist
> https://code.videolan.org/videolan/vlc-android/commit/a66aa5b654fbc1043ee5682a63b57d7e4df8ee3d
---
vlc-android/res/drawable/anim_now_playing.xml | 12 ++++++------
vlc-android/res/drawable/ic_more.xml | 4 ++--
vlc-android/res/drawable/ic_more_player.xml | 13 +++++++++++++
vlc-android/res/layout/playlist_item.xml | 2 +-
4 files changed, 22 insertions(+), 9 deletions(-)
diff --git a/vlc-android/res/drawable/anim_now_playing.xml b/vlc-android/res/drawable/anim_now_playing.xml
index b41d12b76..c2472c23d 100644
--- a/vlc-android/res/drawable/anim_now_playing.xml
+++ b/vlc-android/res/drawable/anim_now_playing.xml
@@ -11,32 +11,32 @@
<path
android:name="11"
android:pathData="M 1.455 3.969 L 2.514 3.969 L 2.514 6.35 L 1.455 6.35 Z"
- android:fillColor="#ffffff"
+ android:fillColor="?attr/player_icon_color"
android:strokeWidth="1"/>
<path
android:name="21"
android:pathData="M 2.778 2.117 L 3.836 2.117 L 3.836 6.35 L 2.778 6.35 Z"
- android:fillColor="#ffffff"
+ android:fillColor="?attr/player_icon_color"
android:strokeWidth="1"/>
<path
android:name="31"
android:pathData="M 4.101 4.233 L 5.159 4.233 L 5.159 6.35 L 4.101 6.35 Z"
- android:fillColor="#ffffff"
+ android:fillColor="?attr/player_icon_color"
android:strokeWidth="1"/>
<path
android:name="path"
android:pathData="M 1.455 3.969 L 2.514 3.969 L 2.514 6.35 L 1.455 6.35 Z"
- android:fillColor="#ffffff"
+ android:fillColor="?attr/player_icon_color"
android:strokeWidth="1"/>
<path
android:name="path_1"
android:pathData="M 2.778 2.117 L 3.836 2.117 L 3.836 6.35 L 2.778 6.35 Z"
- android:fillColor="#ffffff"
+ android:fillColor="?attr/player_icon_color"
android:strokeWidth="1"/>
<path
android:name="path_2"
android:pathData="M 4.101 4.233 L 5.159 4.233 L 5.159 6.35 L 4.101 6.35 Z"
- android:fillColor="#ffffff"
+ android:fillColor="?attr/player_icon_color"
android:strokeWidth="1"/>
</vector>
</aapt:attr>
diff --git a/vlc-android/res/drawable/ic_more.xml b/vlc-android/res/drawable/ic_more.xml
index e4d11de6a..dab330800 100644
--- a/vlc-android/res/drawable/ic_more.xml
+++ b/vlc-android/res/drawable/ic_more.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
- <item android:drawable="@drawable/ic_more_normal" android:state_focused="true" android:state_pressed="true"/>
+ <item android:drawable="@drawable/ic_more_player" android:state_focused="true" android:state_pressed="true"/>
<item android:drawable="@drawable/ic_more_pressed" android:state_focused="true"/>
<item android:drawable="@drawable/ic_more_pressed" android:state_pressed="true"/>
- <item android:drawable="@drawable/ic_more_normal"/>
+ <item android:drawable="@drawable/ic_more_player"/>
</selector>
\ No newline at end of file
diff --git a/vlc-android/res/drawable/ic_more_player.xml b/vlc-android/res/drawable/ic_more_player.xml
new file mode 100644
index 000000000..de23c5e08
--- /dev/null
+++ b/vlc-android/res/drawable/ic_more_player.xml
@@ -0,0 +1,13 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="38dp"
+ android:height="38dp"
+ android:viewportWidth="20"
+ android:viewportHeight="20">
+ <path
+ android:pathData="m10,5.5c-0.5523,0 -1,0.4477 -1,1 0,0.5523 0.4477,1 1,1 0.5523,0 1,-0.4477 1,-1 0,-0.5523 -0.4477,-1 -1,-1zM10,9c-0.5523,0 -1,0.4477 -1,1 0,0.5523 0.4477,1 1,1 0.5523,0 1,-0.4477 1,-1 0,-0.5523 -0.4477,-1 -1,-1zM10,12.5c-0.5523,0 -1,0.4477 -1,1 0,0.5523 0.4477,1 1,1 0.5523,0 1,-0.4477 1,-1 0,-0.5523 -0.4477,-1 -1,-1z"
+ android:strokeWidth="1"
+ android:fillColor="?attr/player_icon_color"
+ android:strokeColor="#00000000"
+ android:fillType="nonZero"
+ android:fillAlpha="1"/>
+</vector>
diff --git a/vlc-android/res/layout/playlist_item.xml b/vlc-android/res/layout/playlist_item.xml
index 7d84abd43..68e37a1a5 100644
--- a/vlc-android/res/layout/playlist_item.xml
+++ b/vlc-android/res/layout/playlist_item.xml
@@ -112,7 +112,7 @@
android:background="@drawable/button_circle_orange_selector"
android:scaleType="center"
android:layout_marginRight="4dp"
- android:src="@drawable/ic_more_normal_w"
+ app:srcCompat="@drawable/ic_more_player"
android:onClick="@{holder::onMoreClick}"
android:clickable="true"
app:layout_constraintEnd_toEndOf="parent"
More information about the Android
mailing list