1
0
Fork 0
mirror of https://github.com/TeamNewPipe/NewPipe.git synced 2025-10-06 03:50:22 +02:00

Altered grid view similar to Youtube app layout

This commit is contained in:
Samuel Wu 2022-10-26 00:06:48 +11:00
parent 28464344c1
commit c607089cbb
3 changed files with 9 additions and 6 deletions

View file

@ -3,6 +3,7 @@ package org.schabi.newpipe.local.subscription.item
import android.content.Context
import android.os.Parcelable
import android.view.View
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.LinearLayoutManager
import com.xwray.groupie.GroupAdapter
import com.xwray.groupie.viewbinding.BindableItem
@ -43,7 +44,7 @@ class FeedGroupCarouselItem(
adapter = carouselAdapter
addItemDecoration(feedGroupCarouselDecoration)
}
viewHolder.recyclerView.setLayoutManager(GridLayoutManager(view.context, 3))
return viewHolder
}