style: modified placeholder icon background colors and added folder icon

This commit is contained in:
antonio 2023-09-15 21:34:44 +02:00
parent 24b3161a8e
commit 7160e3f4b9
10 changed files with 28 additions and 8 deletions

View file

@ -36,6 +36,7 @@ public class CustomGlideRequest {
Unknown,
Album,
Artist,
Folder,
Directory,
Playlist,
Podcast,
@ -60,6 +61,8 @@ public class CustomGlideRequest {
return AppCompatResources.getDrawable(context, R.drawable.ic_placeholder_album);
case Artist:
return AppCompatResources.getDrawable(context, R.drawable.ic_placeholder_artist);
case Folder:
return AppCompatResources.getDrawable(context, R.drawable.ic_placeholder_folder);
case Directory:
return AppCompatResources.getDrawable(context, R.drawable.ic_placeholder_directory);
case Playlist:

View file

@ -42,7 +42,7 @@ public class MusicFolderAdapter extends RecyclerView.Adapter<MusicFolderAdapter.
holder.item.musicFolderTitleTextView.setText(musicFolder.getName());
CustomGlideRequest.Builder
.from(holder.itemView.getContext(), musicFolder.getName(), CustomGlideRequest.ResourceType.Directory)
.from(holder.itemView.getContext(), musicFolder.getName(), CustomGlideRequest.ResourceType.Folder)
.build()
.into(holder.item.musicFolderCoverImageView);
}

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path

View file

@ -0,0 +1,17 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:name="vector"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path
android:name="path_1"
android:fillColor="?attr/colorOnSurfaceVariant"
android:pathData="M 10.834 7.335 L 7.335 7.335 C 6.694 7.335 6.175 7.86 6.175 8.502 L 6.169 15.498 C 6.169 16.14 6.694 16.665 7.335 16.665 L 16.665 16.665 C 17.306 16.665 17.831 16.14 17.831 15.498 L 17.831 9.668 C 17.831 9.026 17.306 8.502 16.665 8.502 L 12 8.502 Z"
android:strokeWidth="1" />
</vector>

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path

View file

@ -6,7 +6,7 @@
android:viewportHeight="24">
<path
android:name="path"
android:fillColor="?attr/colorSurfaceContainerHighest"
android:fillColor="?attr/colorSurfaceVariant"
android:pathData="M 0 0 L 24 0 L 24 24 L 0 24 Z"
android:strokeWidth="1" />
<path