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 Youtube Player in Kodular Creator?

  Welcome guys, today we are back again with our Today's tutorial on "How to use Youtube Player in Kodular Creator?". Now, let's directly start our tutorial without wasting any more time in Talking... How to use Youtube Player in Kodular Creator? 1. What is Youtube Player? Youtube Player is a component given in Kodular creator which we can implement in our app for free. This component enables us to play any video uploaded on youtube in our app.For playing any Video we only need the video ID of that youtube video which is found in the url of the video. This is like a video player in which we can play and control any youtube video without opening URL of video in Webview and which improve our app UI and UX. 2. Why Youtube Video Player? We use Youtube video player because of many benefits some of them are described as below: 1. To show any tutorial for our app. 2. Can control our app better. 3. This is a UX improving Component. 4. No need to get specific server if we need...

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