Android App Development | Button Example In Android Studio - Passionate Geekz

Breaking

Where you can unleash your inner geek.

Sunday, 23 June 2019

Android App Development | Button Example In Android Studio

In This Guide we will learn Working With Buttons In Android Studio

 

  1. 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 :

Download Code From Below 

No comments:

Post a Comment