Check out the custom tabs example.
Add a tab:
ChatSDK.ui().setTab(title, drawable, fragment, 1);
Remove a tab:
ChatSDK.ui().removeTab(1);
You can customize the UI by subclassing UI elements and then injecting them into the framework. You should always do this just after Chat SDK activation. Checkout the example here. Override Activity For example, to override the chat activity you would subclass the PostRegistrationActivity then use: ChatSDKUI.setPostRegistrationActivity(CustomPostRegistrationActivity.class);
Jan 7, 2021Add modules to your app-level build.gradle file Android Auto Support implementation "sdk.chat:mod-auto:[latest-version]" Allow users to have multiple profile pictures implementation "sdk.chat:mod-profile-pictures:[latest-version]"
Dec 4, 2020Android X Make sure you've added the following to your gradle.properties file: android.useAndroidX=true android.enableJetifier=true Inherit from Chat SDK theme The Chat SDK uses custom attributes so you need to make sure that your app inherits from the Chat SDK theme. <style name="AppTheme" parent="ChatSDKTheme">
Dec 4, 2020If you want to build a messaging app, you can use the Chat SDK project as your starting point. To do this you will need to do the folling: Add the Chat SDK libraries to your project Configure Firebase Configure the Chat SDK Enable the Chat SDK Theme Enable Location Messages Display the login screen Add additional module dependencies Enable and configure the modules
Jul 27, 2020or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up