-
Notifications
You must be signed in to change notification settings - Fork 151
How to use LinearLayout Horizontal? #57
Comments
I'm still stuck with this. I'm trying to use Realm and their home site uses this custom recycler view as an "official recipe". The trouble is my Recycler views are horizontal, and I don't know how to set this up. The author should have a prompt answer, but it's been 24 days without any response, so I'll go digging the source code (which, by the way, is very well written! nice.) |
Sorry, I was wrong. This code ONLY works for GridLayout. I didn't find anything that could allow me to create an horizontal recycler view. |
Thorben, is there a way to use a LinearLaytout with an horizonal orientation with the current code? |
I've created a fork of this code which allows horizontal orientation for LinearLayout. It can be found here: https://github.com/loudenvier/realm-recyclerview
Of course, you should check the releases for newer releases and use it, and also keep an eye when this is officially merged (if ever) into the official RealmRecyclerView, as Thorben has a much, MUCH better chance of improving the code I've added. |
lodenvier, I think it'll be great to also expose the LayoutManager on the forked repo. Or at least a way to set stackFromBottom or stackFromEnd on the layoutManager. |
@abba-maker I'll merge my repo with the original. Thorben has already exposed the recycler view. I'll do it over the weekend, since I'm in a real rush at the office these days! I'll comment here when I finish it. I'll also create a pull request with the modifications Thorben asked me to do to accept it, so there won't be a need for my "parallel" version! |
I can't access setLayoutManager()
Do you have ideas to solve this?
The text was updated successfully, but these errors were encountered: