Android how to programmatically set Button stroke and radius
问题 I have this activity with 48 Button that the user can touch and change text and background color. I have edited the style of the default Buttons like this But when the user change the background color i have this bad result These are the xmls that style the dafault Buttons buttons.xml <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/button_pressed" android:state_pressed="true" /> <item android