Topbar Icon can be configured and modified in a set of different ways:
1️⃣ Change the icon for your own custom icon.
2️⃣ Trigger action from the icon.
Out of the box you can override
the value of appIcon
from the KeyboardService
and change it for your own icon.
override val appIcon get() = R.drawable.ic_logo
The appIcon
includes a trigger action that can be overrided directly in the KeyboardService.
override fun onAppsButtonClicked() {
// Do whatever you want
// Example
val intent = Intent(this, MainActivity::class.java)
intent.flags = Intent.FLAG_ACTIVITY_NEW_TASK
startActivity(intent)
}