Skip to main content

How to make a Custom Dialog in Kodular Creator?

 

How to make a Custom Dialog in Kodular Creator?

Hey guys, today we are going to discuss again on another topic of Kodular Tutorials.Today we will be learning how to make a custom dialog box in Kodular.

How to make a Custom Dialog in Kodular Creator?

So,let's start our new fresh tutorial.

1.What are custom dialog?

Custom Dialogs are any component or layout in kodular which are shown to draw attention of user.for example we have seen sometimes a dialog box pop up on our mobile screen which is highlighted in a app.We must have seen a dialog box asking us for choosing any option or anything else.You have also seen some dialog asking you for "Are you sure to quit".So,these dialog box are known as custom dialog box in Kodular.


From Kodular Documentation:

"Show whatever you want in a dialog. You can use as example arrangements, or images or whatever you want. Your chosen layout will be then removed from the screen and only visible in custom dialog. You can use the "Light Theme" property to have a light or dark background. Or you enable "Use Background Color" property to use the background color property as background dialog color. Please make sure the layout you want to use is visible."

Main block for Custom dialog box


Create custom Dialog block:

1. Component-Component or layout you want to show in Custom Dialog

2. Title-Gives a title to your Custom Dialog.

3. Button-Given you a button to add for performing an action.

4. Cancel button text-The text of button used to make Custom Dialog Invisible.

5. Cancelable-Will user be able to cancel your custom dialog.

2.Why should we use Custom Dialog?

This is the first question that why to use Custom Dialog. So, there are many situations in which we can improve UI and UX  of our applications using Custom Dialog.This  attract special attention of user towards any notifications or anything else which we want to show in Custom Dialog.This also makes our application user friendly.


3.How to implement Custom Dialog In our project?

This is getting to be some long. So we are going to discuss it in Further steps:

Step 1:Drag and drop a notifier in your project:

The first step is that you should drag and drop a notifier in your project and design a layout which you want to show as custom dialog.For example you can make a dialog box on "Are you sure to exit".Just write the text and add two buttons "Yes" or "No".Once you have done this then you are ready to move ahead.(Note:Keep in mind to leave the Layout Visible)


Step 2: Open the blocks Section and Set the Blocks:

The main work by which we will be showing a custom dialog is in our blocks section.After opening the blocks section drag and drop a block "When screen 1 Initialize do".


Step 1: Add event when screen initialise

Step 3:Add create custom Dialog:

The third step is to add a block to screen 1 initialize block from the Notifier Component.So, click on notifier component and drag and drop the block create custom dialog....


How to add custom dialog when screen initialise?

Step 4:Add some more blocks:

Now,you need to add some more blocks to the create custom dialog box with our designed layout.So just drag and drop the Layout's block and attach it with Component Section in create custom dialog Block.

How to add custom dialog when screen initialise?

After this you are mostly done now You can add blank text block in all other left sections and true or false in cancelable block.

How to add custom dialog when screen initialise?

Now you are all done with making custom dialog in your app.

Now you need to specify when to show this dialog:

How to show custom dialog in android?

And after this you have successfully implemented Custom Dialog in your app.

So,this was our tutorial for today we will be back tomorrow with a new tutorial.Till Then.......

Happy Koding...............

Comments

Popular posts from this blog

Kodular Basics- Getting started with Kodular

What Is Kodular? Kodular is a online software which allows us to make android apps without any programming knowledge. Kodular's enable us to make fantastic android apps using their blocks-type editor.We can make our apps stand out with the material design UI. Using Kodular we can make android apps just by dragging and dropping components provided in Kodular Creator.We also need not to write any code to make our app working. We just have to specify blocks in kodular creator and we are out of the tension to write Codes. Getting Started With Kodular :   For making apps you just need to go to Kodular's Creator and sign up there with your email and activate your account.You can create Kodular account and make apps for free. There aren't any charges to use Kodular Creator. So just go Kodular.io and sign up there and start happy coding and app making.  Kodular Dashboard: After you have signed up for Kodular creator,select the option "Create Apps" and you will be redirect...

How to use Firebase database in Kodular?

Welcome to Learn Web my friends. Today we are going to learn about how to retrieve and store data from user in firebase database. This will be surely very exciting and useful for you guys. So, here we start our tutorial on "How to store data of user in Firebase in Kodular?" How to store data of user in Firebase in Kodular? 1. What is Firebase? I think you guys may have listened about Firebase but if not, then don't worry this isn't any rocket science you will easily learn "How to store and retrieve data of user in Firebase?". Firstly I want to tell you about What is Firebase Database? So, firebase is a cloud storage platform provided by google to store and retrieve data and Firebase also provide many other services that we will learn in our next tutorials. Today we are going to talk about "How to use Firebase Database in Kodular?"  2. What is Firebase database in Kodular? Now I would like to tell you what is Firebase database and what we are going ...

How to make a Browser in Kodular Creator ?

Welcome back my friends, today I am going to illustrate you "How to make a Android Web Browser in Kodular?" We will make this web browser in Kodular Creator. This will be a basic web browser. By this project we will how to handle  Web View provided in Kodular Creator. We will also learn about many design elements. I am sure you are excited with this project. So, here we start our tutorial without any more discussion. But before starting our tutorial I want to tell you that what are things we will learn in this tutorial: 1. How to design splash screen? 2. How to use text box with web view? 3. How to use material typeface buttons? 4. How to use Horizontal arrangement layout? 5. How to use if-then-else statement?  and many other things which we will use while making this web browser. And now you might be more excited for this project. Now, we move on to our tutorial for making a web browser in Kodular creator; How to make a Browser in Kodular Creator ? We will learn to make a we...