Skip to main content

Create stopwatch with sketchware

Lets begin.. 

1. Create a new project.


2.drag three TextView and three Button. TextView 1 is for second
TextView 2 is for minute
TextView 3 is for hour
Button 1 is for start
Button 2 is for pause
Button 3 is for Reset



Create stopwatch with sketchware


3. Add timer component and named it timer.

Create stopwatch with sketchware



4. Now add onResume function and in onResume function create three variables second, minute and hour.


Create stopwatch app with sketchware
5.Add the following blocks into onResume function.

Create stopwatch app with sketchware


6.Now for Button start add the following blocks.

Create stopwatch app with sketchware


7.For button pause add the following blocks.

Create stopwatch app with sketchware


8.For button reset add the following blocks.

Create stopwatch app with sketchware


9.Run the app and see the result.

Create stopwatch app with sketchware




Comments

Post a Comment

Popular posts from this blog

The first post

Hi this is me . I am here because i want to introduce something that's matter. So absolutely i am talking about sketchware