Stylish Progress Bar For Sketchware

Intent component usage

Today I am going to tell how to use the intent component to switch activities in Sketchware.

Now, Create a new project and create an activity(activity.xml)



















,




In "Main.xml",

Add a button and change its text as "Page 2".


Now go to the component page and add an intent component named "i".


In the onClick event of Button add blocks as in the picture.


This changes the MainActivity to ActivityActivity.



In "Activity.xml",

Add a textview named "New Page".



Congratulations you have how to use intent component 

Pictures of the finished app

 


Comments

This Blog is protected by DMCA.com