philipplackner / SpotifyCloneYT

168 stars 131 forks source link

fire store data is loaded but it shows nothing on the recyclre view #8

Open blackcrown01 opened 1 year ago

blackcrown01 commented 1 year ago

i followed the tutorial o, youtbe untile part 13 then when i come to open app in emulator or physical device it shows nothing even my logcast says that data is loaded can any one help

mdrafi786 commented 1 year ago

Hi @blackcrown01 I have faced the same issue. It is due to the text view in list_item.xml having 0dp width. I have set it to wrap_content and it works.

 <com.google.android.material.textview.MaterialTextView
        android:id="@+id/tvPrimary"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_marginLeft="16dp"
        android:layout_marginTop="8dp"
        android:layout_marginRight="16dp"
        android:textSize="20sp"
        app:layout_constraintStart_toEndOf="@+id/ivItemImage"
        app:layout_constraintTop_toTopOf="parent"
        tools:text="Playlist Title" />

I hope it works for you as well.