Comments (5)
Hi ahsengrw,
We are currently in the final stages of releasing an update to the Android code. This will bring the structure of the code in-line with the iOS code structure, we will also be adding some functionality. One additional piece of functionality will be names included in the chat screen.
If you want to implement this functionality yourself then I would recommend the following:
- Open the chat_sdk_row_text_message_friend.xml
You can see the current layout of the text cell. If you increase the size of the cell you can add a textView at the top to contain the user's name.
- Look at the ChatSDKMessagesListAdapter
You can see that when we inflate the row we set the text content or image of the cell we are displaying. You would need to do a similar thing for your new name label.
You can then access the user who sent the message as this is a characteristic of the message object so you could then retrieve and add their name.
Simon
from chat-sdk-android.
I already did this but failed to get name with extends BaseAdapeter activity (getNetworkAdapter().currentUserName().getMetaUser() cannot resolved in BaseAdapeter) . When I extends ChatSdkBaseActivity it works but notifydatasetchanged cannot resolved.
from chat-sdk-android.
Hello,
Notify data set changed should not be getting called any more than before after implementing this change. When a new message is sent or received you should be adding the user name to the child views of the recycler upon creation. Then you will not have to worry about the data set updating.
Furthermore, the method you are calling for the user will only work for the user themselves, and may cause problems for the other labels. I would recommend using something more generic for all users in the chat.
Please note, for support with integrations and consulting we offer a priority support service. The github issues page is intended more for bugs and problems with the sdk.
If you are interested in the support please see the link above or our other services available at the chatsdk website.
-- Kyle
from chat-sdk-android.
Hello,
I am wondering if you have had any luck with this customization. I would like to close the issue if the problem is solved.
-- Kyle
from chat-sdk-android.
finally i solved the issue, thanks for the help!
from chat-sdk-android.
Related Issues (20)
- Unable to load library: webviewchromium HOT 2
- Unable to login with chat sdk HOT 6
- How to integrate all public group search with group name HOT 1
- Canβt able to attach Photos from any folder except All Media after changing the AlbumSpinner from the toolbar HOT 1
- Big groupchats/chat rooms/channels support (around 5k participants)
- Push notifications doesn't work for app from play store
- looks like a bug in android 12: bottom messaging box does not appear when exiting a chat room and entering again
- Image Picker is not working in Andorid 13 HOT 1
- Android : Different firebase account need to be used. (Separate account for firebase for ChatSdk) HOT 1
- Can't Release Signed Bundle or Apk!
- Android: notification is not come (+ crash happened) when app process is killed HOT 2
- Android app crash HOT 6
- Crash when add threadFragment to compose android view
- Gradle could not fetch 5.5.3 and 5.5.6 version of library HOT 1
- Error when compiling when updating the android studio to the giraffe version HOT 1
- the host of libraries return 409 jfrog HOT 1
- App Crash When Moving on to ThreadDetailsActivity HOT 2
- Multiple issues and can not login to the account HOT 1
- Can not create account / Can not login HOT 1
- Sync and build are failed HOT 1
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 chat-sdk-android.