Comments (8)
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.
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.
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.
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.
from chatkit.
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.
I made a PR to close this issue. You can check the solution here: #31
from chatkit.
Is there a way to do this that doesn't also reverse the date rows?
from chatkit.
@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?
from chatkit.
Related Issues (20)
- get item by id
- message deleting issue HOT 4
- Programmically change the Icon of MessageInput's Button
- Activate submit button on empty EditText field of MessageInput HOT 2
- Message time formatting (not header date formatting)
- MessageListAdapter addToStart method always add message on top of chat (instead of bottom of list) HOT 1
- Unable to create custom holder HOT 1
- Could not GET 'https://google.bintray.com/flexbox-layout/com/google/android/flexbox/1.0.0/flexbox-1.0.0.pom'. HOT 6
- how to apply readmore text?
- How to align bubbles on the top of the screen when there are only a few of them?
- Update flexbox to 3.0.0 HOT 3
- Adding message history through addToStart reverses messages' order
- Display date or "delivered" only on last message
- Can we display sender name on chat message bubble ?
- Could not resolve com.github.stfalcon-studio:Chatkit:v0.4.1. HOT 7
- Strange behavior with Custom Voice ViewHolder HOT 2
- Is it compatible with jetpack compose
- Tg HOT 1
- MessageInput Error: Application Crashes on launching DefaultMessageActivity on setcontentview method
- How to attach images on chat?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatkit.