Multi ViewType RecyclerView || Android studio Tutorial 2023

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ธ.ค. 2024

ความคิดเห็น • 5

  • @NeerajSingh-oc5hu
    @NeerajSingh-oc5hu ปีที่แล้ว +2

    Brother I'm facing a problem in cardview whenever I'm trying to change background colour the background colour is not showing in my phone device it's showing always Black in case of white and in virtual device it is showing perfect

    • @codingstuff070
      @codingstuff070  ปีที่แล้ว

      Try this app:cardBackgroundColor="@somecolor"

  • @__AbhishekGupta
    @__AbhishekGupta ปีที่แล้ว

    @codingSTUFF thnx bro it help me

  • @letscode29
    @letscode29 ปีที่แล้ว

    Not enough explanation, you did not explain what is the usage of sealed class here

    • @codingstuff070
      @codingstuff070  ปีที่แล้ว

      Didn't use a sealed class here cause logic was based on poster value ... I said u can have different use cases..for this video we had only one type of data that's why we had single data class but u can have case where u need to combine data from different model classes that time u can use sealed class as type for recycler adapter and u can have different child data classes in that sealed class.