Closed ShoMasegi closed 5 years ago
looks like you need to extend Carousel, and setNestedScrollingEnabled(false).
for example:
@ModelView(saveViewState = true, autoLayout = Size.MATCH_WIDTH_WRAP_HEIGHT)
class HorizontalCarousel(context: Context) : Carousel(context) {
init {
isNestedScrollingEnabled = false
}
override fun createLayoutManager(): RecyclerView.LayoutManager {
return LinearLayoutManager(context, LinearLayoutManager.HORIZONTAL, false)
}
...
}
@haohaozaici It works well!! Thanks a lot!!
Hi! I'm using Carousel in Epoxy with AppBarLayout. But AppBarLayout do not scroll when drag from carousel row. I added
app:layout_behavior="@string/appbar_scrolling_view_behavior"
toEpoxyRecyclerView
, but do not work well. please give me advices to fix this issue.activity.xml
fragment.xml
controller.kt