This basic Android Studio tutorial shows how to create a button in XML for an Android app and give it a gradient background using a drawable. It suits beginners learning to build app interfaces in code.
What you’ll learn
✓Create a button in Android XML layout code
✓Build a gradient background for a button using a drawable