Add bottom navigation bar on sketchware app| First on Youtube and other tutorials

Опубликовано: 26 Февраль 2026
на канале: Sketchware Help
2,780
53

Hello friends in this video we have shown how to create a bottom navigation bar on your sketchware android app. This is the first tutorial on this topic by any sketchware tutorial website or youtube channel. Hope you all will like the video. Do like the video. Also do subscribe our channel for more such videos. Hope you will learn something new from the video. Also if you get any issues in this then do bring it into our notice so that we can solve it.

1st ASD Block:

android.support.design.widget.BottomNavigationView btm= new android.support.design.widget.BottomNavigationView(MainActivity.this);
btm.setLayoutParams(new ViewGroup.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT));



linear2.addView(btm);
linear2.setElevation(16);

Menu menu = btm.getMenu();

final int A = 0;
final int B = 1;
final int C = 2;



menu.add(Menu.NONE, A, Menu.NONE, "Home").setIcon(R.drawable.ic_home_grey);

menu.add(Menu.NONE, B, Menu.NONE, "Favorites").setIcon(R.drawable.ic_favorite_grey);

menu.add(Menu.NONE, C, Menu.NONE, "Profile").setIcon(R.drawable.ic_person_grey);

2nd ASD Block:

btm.setOnNavigationItemSelectedListener(new android.support.design.widget.BottomNavigationView.OnNavigationItemSelectedListener() { @Override public boolean onNavigationItemSelected(final MenuItem item) {
switch (item.getItemId()){
case A:
showMessage("item1");
break;
case B:

showMessage("item2");

break;
case C:

showMessage("item3");

break;

} return true; } });

#sketchware #scratch #android #app