Recommendation
For a modern, flexible, and future-proof keyboard:
For a simpler, more straightforward implementation:
Choose Kotlin XML. This is a good option if you're new to custom keyboards or prefer a more traditional approach.
If you have a very short deadline, then XML will likely be faster to implement.
Key Considerations
Complexity of your keyboard: If you're planning a complex keyboard with dynamic layouts and animations, Compose is the better choice.
Your experience: If you're comfortable with Compose, use it. If you're more familiar with XML, start with that.
Long-term maintenance: Compose will be easier to maintain in the long run.
Ultimately, the best choice depends on your specific needs and preferences.