Yes you can. Sadly I can't share any code on how to, but you can checkout Anko Layouts (although deprecated now and I never used it). I edited my post also, to show you how it looks like.
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.
Trying to understand use case
1 project | reddit.com/r/surfaceduo | 23 Jan 2022
Is it safe to use gboard while cutting its internet access with datura?
1 project | reddit.com/r/CalyxOS | 23 Jan 2022
[SL] MangaDex 3.0+1.0 Staff AMA
6 projects | reddit.com/r/manga | 23 Jan 2022
Ktor stops responding when using JWTs
1 project | reddit.com/r/ktor | 21 Jan 2022
Kotlin Multiplatform Mobile performance on M1 Macbooks
1 project | reddit.com/r/Kotlin | 21 Jan 2022