🎨 Call Screen UI Customization Guide (PitelCallUIConfig)
The Pitel VoIP SDK provides a built-in Jetpack Compose in-call overlay screen (PitelCallActivity) and heads-up notification UI. You can customize the entire appearance—including colors, button visibility, font sizes, text labels, and icon resources—using PitelCallUIConfig.
🚀 Quick Example

Pass your PitelCallUIConfig during SDK initialization:
import com.pitel.voip.sdk.core.PitelClient
import com.pitel.voip.sdk.ui.PitelCallUIConfig
val customUIConfig = PitelCallUIConfig(
// Colors (Light Mode)
backgroundColor = 0xFF1B2A47, // Dark navy primary background
textColor = 0xFFFFFFFF, // Text color
acceptBtnColor = 0xFF4CAF50, // Green answer button
declineBtnColor = 0xFFE53935, // Red decline button
hangupBtnColor = 0xFFE53935, // Red hangup button
// Custom Status Texts
incomingText = "Incoming call...",
ongoingCallTitle = "Call in progress",
ongoingCallText = "Tap to return to call",
acceptText = "Answer",
declineText = "Decline",
// Visibility Toggles
showKeypadByDefault = false,
showTransferButton = true,
showHoldButton = true,
showMuteButton = true,
showSpeakerButton = true
)
// Apply UI config during initialization
PitelClient.init(
context = this,
autoLaunchCallScreen = true,
uiConfig = customUIConfig
)
📋 Complete PitelCallUIConfig Parameters Reference
| Parameter | Type | Default Value | Description |
|---|---|---|---|
| Theme & Colors (Light Mode) | |||
backgroundColor | Long | 0xFF4F69E3 | Primary call screen background color (HEX ARGB) |
textColor | Long | 0xFFFFFFFF | General text color |
actionCardBgColor | Long | 0xFFFFFFFF | In-call action card panel background color |
| Theme & Colors (Dark Mode) | |||
backgroundColorDark | Long | 0xFF121212 | Primary call screen background color in dark mode |
textColorDark | Long | 0xFFFFFFFF | General text color in dark mode |
actionCardBgColorDark | Long | 0xFF1E1E1E | In-call action card panel background color in dark mode |
| Button States & Colors (Light Mode) | |||
btnActiveBgColor | Long | 0xFFE8ECFF | Active/toggled button background color |
btnInactiveBgColor | Long | 0xFFF5F7FB | Inactive button background color |
btnDisabledBgColor | Long | 0x66F5F7FB | Disabled button background color |
btnActiveIconColor | Long | 0xFF4F69E3 | Active button icon tint |
btnInactiveIconColor | Long | 0xFF2D3748 | Inactive button icon tint |
btnDisabledIconColor | Long | 0xFFA0AEC0 | Disabled button icon tint |
btnLabelTextColor | Long | 0xFF2D3748 | Button label text color |
| Button States & Colors (Dark Mode) | |||
btnActiveBgColorDark | Long | 0xFF3D4E80 | Active button background color in dark mode |
btnInactiveBgColorDark | Long | 0xFF2C2C2E | Inactive button background color in dark mode |
btnDisabledBgColorDark | Long | 0x662C2C2E | Disabled button background color in dark mode |
btnActiveIconColorDark | Long | 0xFF8FA9FF | Active button icon tint in dark mode |
btnInactiveIconColorDark | Long | 0xFFE0E0E0 | Inactive button icon tint in dark mode |
btnDisabledIconColorDark | Long | 0xFF4A4A4A | Disabled button icon tint in dark mode |
btnLabelTextColorDark | Long | 0xFFE0E0E0 | Button label text color in dark mode |
| Control Action Buttons | |||
acceptBtnColor | Long | 0xFF4CAF50 | Answer incoming call button background color |
declineBtnColor | Long | 0xFFE53935 | Decline incoming call button background color |
hangupBtnColor | Long | 0xFFE53935 | Hangup active call button background color |
| Typography & Font Sizes | |||
titleTextSizeSp | Float | 28f | Font size (in SP) for Caller/Callee display name |
| In-Call Action Visibility | |||
showKeypadByDefault | Boolean | false | When true, automatically reveals the DTMF keypad on call start |
showTransferButton | Boolean | true | Show/hide the call transfer button |
showHoldButton | Boolean | true | Show/hide the call hold/unhold button |
showMuteButton | Boolean | true | Show/hide the microphone mute/unmute button |
showSpeakerButton | Boolean | true | Show/hide the audio routing (speaker/earpiece/bluetooth) button |
| Custom Status & Notification Texts | |||
incomingText | String | "Incoming call..." | Incoming call alert title text |
outgoingText | String | "Outgoing..." | Outgoing call dialing status text |
connectingText | String | "Connecting..." | Call connection status text |
ringingText | String | "Ringing..." | Ringing status text |
activeText | String | "Active" | Call established status text |
disconnectedText | String | "Disconnected" | Call ended status text |
acceptText | String | "Answer" | Answer button text in notification popup |
declineText | String | "Decline" | Decline button text in notification popup |
ongoingCallTitle | String | "Call in progress" | Ongoing call notification title |
ongoingCallText | String | "Active call" | Ongoing call notification body text |
Custom Resource Drawables (R.drawable.*) | |||
defaultAvatarResId | Int? | null | Caller avatar placeholder drawable resource ID |
muteIconResId | Int? | null | Mute microphone action button icon |
unmuteIconResId | Int? | null | Unmute microphone action button icon |
speakerIconResId | Int? | null | Speaker audio route button icon |
earpieceIconResId | Int? | null | Earpiece audio route button icon |
bluetoothIconResId | Int? | null | Bluetooth audio route button icon |
headsetIconResId | Int? | null | Wired headset audio route button icon |
holdIconResId | Int? | null | Hold call action button icon |
resumeIconResId | Int? | null | Resume call action button icon |
transferIconResId | Int? | null | Transfer call action button icon |
keypadIconResId | Int? | null | Show dial pad action button icon |
acceptIconResId | Int? | null | Answer call icon |
declineIconResId | Int? | null | Decline call icon |
hangupIconResId | Int? | null | Hangup call icon |