Tutorial 3_Menu
Tutorial 3_Menu
This tutorial will create an android app bottom navigation with Kodular and navigate between pages
with cool animation transitions.
1|P a g e
IS2023 Mobile Application for Business
• After importing the project .aia file, you will see the login screen. Let's add a new screen. Click
add new screen, name it as "Home". Later, we will add another screen called “Screen3.”
2|P a g e
IS2023 Mobile Application for Business
• We can set up the Bottom menu using the blocks editor later, and we must find some
suitable icons for the Bottom menu. For example, create three menu items, List, Info, and
Next Screen.
(You can find the icon from this website
https://fonts.google.com/icons?selected=Material+Icons+Round and then download the
icon and upload it to the assets in Kodular)
• From Palette>Utilities, drag the Animation Utilities component; we will use this component
to make transition animation.
3|P a g e
IS2023 Mobile Application for Business
• For initializing the block, we will set up the Bottom navigation menu. This block adds the item
for Bottom navigation, and you need to put the id, title, and image for the icon.
4|P a g e
IS2023 Mobile Application for Business
• When a user clicks on the Bottom Navigation Menu, first, set all the containers (Vertical
Arrangement) visible to false.
5|P a g e
IS2023 Mobile Application for Business
• Then continue to extend this block, if user click of the 3rd menu item, it will open the
other screen named Screen3, if the user clicked on the 1st or 2nd menu item, the blocks
will display the Red/Blue vertical arrangement accordingly, plus a little animated effect.
6|P a g e
IS2023 Mobile Application for Business
• When we navigate back to this home screen from Screen3, we need to update the tab
position to the state that the user requested on Screen3. That would be based on the result
variable from Screen3.
7|P a g e
IS2023 Mobile Application for Business
• Add a Label and put it inside the vertical arrangement, modify its Text property to "Please add
a new function of your own choice to this screen. You only need to design the UI components
— no need to implement its blocks."
8|P a g e
IS2023 Mobile Application for Business
• For initialize block, we will retrieve the value pass from the home screen. And we will set up
the Bottom navigation menu. This block adds the item for Bottom navigation. You need to
put the id, title, and image for the menu item.
• When the user clicks on the Bottom navigation menu and selects item 1 or item 2, we will
close this Screen3 and return the selected Menu ID of the selected menu item.
9|P a g e
IS2023 Mobile Application for Business
Done!
Reference:
1. https://amoebadev.home.blog/2019/11/22/create-android-app-login-screen/
2. https://community.kodular.io/t/tutorial-bottom-navigation-with-animation/45685
10 | P a g e