Flexbox layout manager is not scrollable as you can see in the following image I want the last row to be centered with scrollable. The focus should be the center of the view.
Using the following layout manager for recycler view.
private fun getLayoutManager(recyclerView: RecyclerView): RecyclerView.LayoutManager? { // return LinearLayoutManager(requireContext(),RecyclerView.HORIZONTAL,false) return FlexboxLayoutManager(context).apply { alignItems = AlignItems.CENTER flexDirection = FlexDirection.ROW flexWrap = FlexWrap.NOWRAP } }
Flexbox layout manager is not scrollable as you can see in the following image I want the last row to be centered with scrollable. The focus should be the center of the view.![MicrosoftTeams-image (3)](https://user-images.githubusercontent.com/13958364/179509752-0fe6f127-8d14-4540-829b-f501b607d931.png)
Using the following layout manager for recycler view.
private fun getLayoutManager(recyclerView: RecyclerView): RecyclerView.LayoutManager? { // return LinearLayoutManager(requireContext(),RecyclerView.HORIZONTAL,false) return FlexboxLayoutManager(context).apply { alignItems = AlignItems.CENTER flexDirection = FlexDirection.ROW flexWrap = FlexWrap.NOWRAP } }