as you want the interactive view to look like a button with text
you can create an xml layout using a button or card and text content inside it
then add it as follows:
Button alphabetButton = LayoutInflater.from(context).inflate(R.layout.alphabet_layout);
so it's better than code design, now it's a layout, so you can change the layout as you want
also you can add to your button in alphabet_layout.xml
android:background="@null"
source share