In This Guide we will learn Working With Buttons In Android Studio
Change Color of button when pressed using java Class
In this guide or upcoming i will not show you how to setup and all stuff . i am pretending that you have downloaded the android studio and ready to start with your first android app.
- Create android project and named it as Hello world .
- Choose target android versions and add an activity
- Always Generate layout file This habit will help you in future
Your Mainactivity.java
Here You need to Import the Button Class
Your Layout File Activity_main.xml
OUTPUT :
No comments:
Post a Comment