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

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 use Kodular Companion to test App?

 What is Kodular Companion? I understand, if you are new to kodular then you won't be able to understand what is meant by Kodular companion.So, today we are going to clear your doubt "What is Kodular Companion?".Kodular companion is a android app by Kodular Organisation.This app allow us to test the Realtime changes in our app while creating apps.If we don't use companion then we have to create and download our app to check whether is it working properly or not.But this is not a comfortable method because we can't check realtime changes in our app.So, to check app by downloading and installing we have have to download our app more than 100 times which is not easy for us. Therefore, we are provided a app which we can use to check the realtime changes in our app without downloading it every time. Benefits of Kodular Companion: 1.No need to download app multiple times. 2.Can be used to see realtime changes. 3.We can check different apps with Companion. 4.Useful while...

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...