Skip to main content

How to make a stopwatch application in Kodular?

 

How to make a stopwatch application in Kodular?

How to make a stopwatch application in Kodular?

So, guys we are back with a new tutorial. In today's tutorial we will learn making an app rather than learning to use any component in  Kodular creator. It has been time, since we  have provided a tutorial for making a android app in Kodular Creator Series. Hence, today we will  be learning How to make a simple seconds based stopwatch in Kodular. Here firstly we talk about some of FAQ's about Stopwatch in Kodular creator.......

FAQ's about stopwatch App

1. Functions of this Stopwatch

If you want to know the main functions of this Stopwatch application then we have how this app will work:
1. Firstly User has to start the stopwatch
2. Then he can pause or start the stopwatch.
3. User will be able to reset this stopwatch.
4. User can check timing upto 10 mini seconds.
5. User can easily use this app.

2. How will this app work?

In this app we will use a timer component to record time and we will use button for start stop and reset the stopwatch. We will design UI very simple and easy understanding with user friendly. In this app we will record the time of a clock component using a label every time it complete the time interval. So, let's directly get through it without waiting any more....

Designing

For designing of this application you need to follow these steps after configuring and opening your project:

Step 1: Add a clock component from sensors option and  set it's time interval 100 microseconds. Then set the time always fires true and set the timer enabled unchecked. Hence, the stopwatch won't start until we click on the Start button.

Step 2: Add a image and label denoting your stopwatch to make it look attractive. You can get the stopwatch image from here.

Step 2: Add a horizontal arrangement layout from layout and set it's height 70 pixels. Then set align horizontal and align vertical to center. So that, we will get anything we place in it at center of it.

Step 3: Add two labels to it one should show the seconds and the other mini seconds and add a ' : ' between them to recognize between them easy for user.

Step 4: Add three buttons, one for Start other for pause and third for reset the stopwatch. Place them vertically and make them of big size (depends upon your opinion) and give them some good attractive  color.

Step 5: Now set all the visible components positions properly using live companion. Kodular viewer doesn't show the actual look of our application. So,take a look of application using companion.

 Here I have a example how you can design UI for your application. You can easily design this UI in Kodular Creator.....

Kodular Stopwatch Design


Blocks For stopwatch:

Block 1: Firstly, you have to set the variable block which will have the values of seconds and mini seconds. Illustration:
Kodular Block no. 1

Block 2: This block will control the event when start button is clicked and set the timer enabled. 

Kodular Block No. 2
Block 3: When clock timer completes then we have to set the value of seconds and mini seconds as the variables which will be shown as Time using labels.
Kodular block no. 3

Block 4: To handle the situation when Stopwatch stop button is clicked by user. We have to set the block such as follows.
Kodular block no. 4

Block 5: To reset the stopwatch timer, we can set the following blocks.
Kodular block no.5

So, now you have done everything that would make your app to working. You can add extra thing in UI or any other codes for you. This will show your creativity. So, you can now easily learn how to use codes of clock component for various function. I hope you got it. This was all for today's tutorial, we will be back again with a new tutorial. Keep connected and....
 
Happy Koding.....

Comments

Popular posts from this blog

How to use dynamic component in Kodular Creator ?

How to use dynamic components in Kodular Creator? Welcome back my dear friends, today we are back again with a complete new tutorial. Today we are going to learn How to use Dynamic components in Kodular Creator? As of all our tutorials I assure you you will find this tutorial very useful while developing any of you application which the no. of components are not fixed. So, we use dynamic components to add as much as number of components as we want. So, here we start our tutorial with some of FAQ's that will help you to learn what is concept of dynamic components if you didn't understood "What does dynamic components mean?"  FAQ's about Dynamic components 1. What are dynamic components? Dynamic components are the components which allows us to show as much as number of components in our application as we want. So, that we need not to update app to add any component in our application. This is useful when we are developing any application like Shopping application in

How to use Utilities component in Kodular Creator?

  How to use Utilities component in Kodular Creator? Welcome back guys to Learn webs online. As you may have seen in above image, in today's tutorial we will be going to learn to use the utilities components in Kodular Creator. These components will surely be useful for your future projects. In today tutorial we will learn to use these four utilities components. These are the main utilities components in kodular creator. There are also another utilities components which we will learn to use in further tutorials. So, let's start our tutorial without waiting any more..... 1. Wallpaper component Introduction: This component can be found at the last position in the utilities components under utilities option in sidebar. As you can understand by it's name this is used to access the wallpaper settings of user's device. This is very useful component while developing a app in which we allow user to change or modify wallpaper within the application. This app may be a browser app

How to use KIO4 gradient in Kodular?

  Welcome to learn web, today we are back with a completely new tutorial on Kodular Basic-to -Advanced app making.Today topic for our tutorial is that how to use Gradient effect in Kodular app making for any layout. How to use gradient colors in kodular app? For this you need to use a extension named "KIO4" gradient.So,before starting you need to get this extension before we start our tutorial.To get this click on link below: My Drive Link This is the google drive link for the KIO4 extension. I think you might have got the extension.So, we start our tutorial on how to use gradient effect Kodular apps. Step 1:Open your Project in which you want to use gradient Effect.Then click on the extensions button in the bottom of left sidebar and click on import extension.Now select the KIO4 gradient file and click on Import after some time your extension will be processed and imported to your project. Illustration: Once you have Imported the KIO4 extension you can see the extension as s