From e3dff8a8ef4e0b880b4c92c91c501992c368a7a7 Mon Sep 17 00:00:00 2001
From: Anonymous Raccoon <32224410+AnonymusRaccoon@users.noreply.github.com>
Date: Sun, 8 Jul 2018 20:37:55 +0200
Subject: [PATCH] Adding titles in home view
---
.../Resources/Portable Class/LineAdapter.cs | 2 ++
MusicApp/Resources/layout/LineSong.xml | 18 +++++++++++++++++-
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/MusicApp/Resources/Portable Class/LineAdapter.cs b/MusicApp/Resources/Portable Class/LineAdapter.cs
index dcd7284..3b496eb 100644
--- a/MusicApp/Resources/Portable Class/LineAdapter.cs
+++ b/MusicApp/Resources/Portable Class/LineAdapter.cs
@@ -27,6 +27,8 @@ namespace MusicApp.Resources.Portable_Class
{
RecyclerHolder holder = (RecyclerHolder)viewHolder;
+ holder.Title.Text = songList[position].GetName();
+
if (songList[position].GetAlbumArt() == -1 || songList[position].IsYt)
{
var songAlbumArtUri = Android.Net.Uri.Parse(songList[position].GetAlbum());
diff --git a/MusicApp/Resources/layout/LineSong.xml b/MusicApp/Resources/layout/LineSong.xml
index 143faee..0c0d4ce 100644
--- a/MusicApp/Resources/layout/LineSong.xml
+++ b/MusicApp/Resources/layout/LineSong.xml
@@ -7,5 +7,21 @@
+ android:id="@+id/albumArt" />
+
+
\ No newline at end of file