We now provide you along with the CometChat SDK, the source code for our UI. This source code can be found in the downloaded package under the
Android/CometChat UI Source folde in the downloaded package. This folder contains the source code for the UI.
Like mentioned in the previous sections, you are provided with the option to directly launch the existing UI that comes with the SDK. But now you can also modify the UI to suit your requirements. Feel free to dive into the codebase and play around with it. This will help you to get a clear understanding of how the application works and also in the process help you achieve the UI of your choice.
Setup to modify the UI.
In the SDK, locate the sample app in the
Android/CometChat UI Source. In the sample app, locate a folder called readyui. Import the readyui folder as a module to android studio. Go to File -> Project Structure, select your app in the left side section. Add readyui as a module dependency to your existing android application project.
Now that readyui is added as a dependency, make the necessary changes in the readyui module to suit your UI requirements. And use the steps mentioned in the previous sections to launch the chat in your application.