Category "android-button"

Create MaterialButtonToggleGroup including MaterialButton(s) with customized style programmatically in Android

I'm trying to create a MaterialButtonToggleGroup with material buttons inside it and I wanna do that with custom styles. I was able to create that using xml, h

Can't get different state background for MaterialButtonToggleGroup

I'm using Material 3 ButtonToggleGroup, I want to have a different background when a button is selected. However, If I don't add any attributes to my style appl

handling back button android

I have a problem while hitting the back button on an activity, in particular, the back button on the activity closes the application and destroys all the activi

Background adding more padding to Button

I have this simple XML file in my Android Studio. There are 2 buttons <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schema