Code Monkey home page Code Monkey logo

Comments (8)

troy379 avatar troy379 commented on May 18, 2024 2

Thanks for your replies @mradzinski !
Unlike your solution, I've added overloading for setAdapter method in DialogsList and MessagesList, with which you can set reverse mode to false (due to versioning).
Please, update library version to 0.2.1

Best regards, Alexander.

from chatkit.

shubhral avatar shubhral commented on May 18, 2024 1

I was facing the same issue since yesterday where the dialogs in my dialogList were appearing from bottom. Thanks to this issue raised by @uaeuae , I finally got it working the desired way by overriding default reverse mode to false in setAdapter.
I think it'd be great if you add this in your documentation as well @troy379

Cheers! :)

from chatkit.

mradzinski avatar mradzinski commented on May 18, 2024

How about reversing your messages array? AFAIK the messages layout doesn't apply any kind of sorting to the messages it receives, thus you should be totally able to reverse your messages array to make it look the way you want.

from chatkit.

uaeuae avatar uaeuae commented on May 18, 2024

Thank you for your replay mradzinski. I think you understood the question wrong. What I meant, currently, the bubbles starts from down (bottom of the screen). What I want the other way around. I want to bubbles to start from top screen like the below screen as the following screenshot.
chat

from chatkit.

mradzinski avatar mradzinski commented on May 18, 2024

You are not gonna be able to do it, not without forking your own copy of this repo and changing this line. LinearLayoutManager has the following constructor: LinearLayoutManager(Context context, int orientation, boolean reverseLayout), stfalcon-studio chose to pass true to the reverseLayout parameter and it'll stay true unless you manually modify their code.

from chatkit.

mradzinski avatar mradzinski commented on May 18, 2024

I made a PR to close this issue. You can check the solution here: #31

from chatkit.

CallumCoombes avatar CallumCoombes commented on May 18, 2024

Is there a way to do this that doesn't also reverse the date rows?

from chatkit.

ptrudec avatar ptrudec commented on May 18, 2024

@troy379 In adapter reverseLayout = True and when adding messages to list with addToEnd reverse = True. Is there any option when there isn't enough messages to fill the screen that messages doesn't have padding from top?
Screen Shot 2019-05-02 at 11 00 24

from chatkit.

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.