Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flexbox layout manager not scrollable #605

Open
lazy-coder-10 opened this issue Jul 18, 2022 · 1 comment
Open

Flexbox layout manager not scrollable #605

lazy-coder-10 opened this issue Jul 18, 2022 · 1 comment

Comments

@lazy-coder-10
Copy link

lazy-coder-10 commented Jul 18, 2022

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)

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 } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@lazy-coder-10 and others