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 Blocks in Text section in Kodular Creator?

How to use Blocks in Text section in Kodular Creator?  Guys welcome back to Learn Web Online, Today as you have seen we will be learning about using the main text related blocks. These text blocks are very useful while making your android application. We can edit, trim, join etc. text using the blocks which we will be talking about. The blocks which we will be learning to use today can be found under the built in components 'Text'. So, open your project to get live results to try these blocks your own. Here we start our tutorial without wasting time any more.... Blocks In text section Here, we have the main blocks which we are going to learn to use today's tutorial 1. Text Block: This block is used to denote a text string. This is the basic block which provide a text string in block section. We can use this block to give a text string to any other block. For example we can enter a text and set this text to a specific Label's text. 2. Join Text This block is used to join...

How to improve UI and UX of your android application?

  How to improve UI and UX of your android application? Koders, you are welcomed to Learn web online. So, as you have seen today we will be learning How we can Improve UI of our applications make in Kodular creator. Today, I will be sharing my own methods that I prefer using to Improve UI of my android applications. Before we start our tutorial I want to tell you if you are new to Learn Web online then Keep connected with us for getting more interesting tutorials related to Kodular application development. But firstly we would talk about why is a better UI important for our applications. Here are the main things which proves the importance of a better UI in Kodular Crerator ; 1. More Downloads: If the UI of your application is good then it will surely help you to get more downloads in play store. Users will get attracted by the screenshots which you provided to app store if they shows a good UI design. 2. Better engagement:  A better app UI design will help you to get more use...

How to add Google Voice Search in Kodular Creator?

  So guys today we are going to learn about Kodular components. Today we will be discussing how to use Voice search in Kodular. Now, here we start our tutorial. How to add Google Voice Search in Kodular Creator? What is Google Voice Search? Google voice search is a function in which we can search in our device by speaking our query rather than typing it to search. You may have used it manny time but today We are going to learn how to implement this our android app. Why should we use it? We can use voice to text option for many tasks such as, 1. In browser for Search option. 2. For getting voice message. 3. For use of translation etc. So,these were the some of uses of voice to text option. You guys can use this anywhere you feel need of voice input from user. How to implement this in our app?  Step 1: Firstly you need to check for speech recognizer component under the option of media in sidebar. Properties: We don't have any properties options for speech recognizer currently in...