Modifying UI

We now provide you along with the CometChat SDK, the source code for our Native Android UI and the Binding project which will generate the respective .dll for your project.
Generating the .dll is a two-step process

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.

Step 1: Generating the .aar File

The Native Android UI source code can be found in the downloaded package under the Xamarin\CometChat UI Binding\CometChatUI folder.
Open the source code in Android Studio.
Make the required changes in the module.
Clean and gradle build the project in Assemble Debug mode.
The Respective CometChatUI.aar file will be generated.

Step 2: Generating the .dll File

The binding source code is available inside Xamarin\CometChat UI Binding folder.
Open the CometChatUIBinding.sln in your Xamarin Studio/ Visual Studio.
Add the above generated CometChatUI.aar file into the Binding project as a Library, for which you will have to Right Click on Jars -> Add -> Add Files and then select CometChatUI.aar file.
Perform clean and rebuild once the CometChatUI.aar file is added.
The .dll file will be generated and available under bin folder of the project.

  • Was this helpful?
  • Yes   No