You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 } }
The text was updated successfully, but these errors were encountered:
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 } }
The text was updated successfully, but these errors were encountered: