Code Monkey home page Code Monkey logo

Comments (6)

abba-maker avatar abba-maker commented on August 11, 2024 1

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.
Cheers

from realm-recyclerview.

loudenvier avatar loudenvier commented on August 11, 2024

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.)

from realm-recyclerview.

loudenvier avatar loudenvier commented on August 11, 2024

Now I know why the author didn't respond. It was so stupid after all:

recyclerView.setOrientation(LinearLayoutManager.HORIZONTAL);

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.

from realm-recyclerview.

loudenvier avatar loudenvier commented on August 11, 2024

Thorben, is there a way to use a LinearLaytout with an horizonal orientation with the current code?

from realm-recyclerview.

loudenvier avatar loudenvier commented on August 11, 2024

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
You can use it in your code by replacing the current RealmRecyclerView dependency with the following:

compile 'com.github.loudenvier:realm-recyclerview:0.9.21d'

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.

from realm-recyclerview.

loudenvier avatar loudenvier commented on August 11, 2024

@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!

from realm-recyclerview.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.