Hmmm...I didn't use a custom layout manager, so I can't say anything, but I think it should. If you going to do it, could you leave a result?
So it looks like you can; as long as your layout manager defines the 4 parameter constructor:
public YourLayoutManager(Context context, AttributeSet attrs, int defStyleAttr,int defStyleRes)
Then in the xml layout, you just have to fully qualify your LayoutManager, so mine was
com.corey.testrecyclerview.ThreeColumnGridLayoutManager
I just had my layout manager extend grid layout manager and set the column count to 3 when the layout manager is created.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hmmm...I didn't use a custom layout manager, so I can't say anything, but I think it should. If you going to do it, could you leave a result?
So it looks like you can; as long as your layout manager defines the 4 parameter constructor:
Then in the xml layout, you just have to fully qualify your LayoutManager, so mine was
com.corey.testrecyclerview.ThreeColumnGridLayoutManager
I just had my layout manager extend grid layout manager and set the column count to 3 when the layout manager is created.