This document describes how to customize the UI of TUICallKit and provides two schemes for customization: slight UI adjustment and custom UI implementation.
Scheme 1. Slight UI Adjustment
You can adjust the UI of TUICallKit by directly modifying the UI source code in the Android/tuicallkit-kt folder in tencentyun/TUICallKit.
Replacing icons
You can directly replace the icons in the tuicallkit-kt/src/main/res/drawable-xxhdpi folder to customize the color tone and style of all the icons in your application. When you replace an icon, make sure the filename is the same as the original icon.
Replacing ringtones
You can replace ringtones by replacing the three audio files in the tuicallkit-kt/src/main/res/raw folder.
Filename
Description
phone_dialing.mp3
The sound of making a call
phone_hangup.mp3
The sound of being hung up
phone_ringing.mp3
The ringtone for incoming calls
Replacing text
You can modify the strings on the video call UI by modifying the strings.xml file in tuicallkit-kt/src/main/res/values-**/.
Scheme 2. Custom UI Implementation
The entire call feature of TUICallKit is implemented based on the UI-less component TUICallEngine. You can delete the tuicallkit folder and implement your own UIs based entirely on TUICallEngine.
TUICallEngine
TUICallEngine is the underlying API of the entire TUICallKit component. It provides key APIs such as APIs for making, answering, declining, and hanging up one-to-one audio/video and group calls and device operations.