Any way to Change Bottom Navigation bar Color?

I want to change color of Bottom navigation bar, But i have no idea how to do it in Fuse. Is it possible?

Not sure what you’re talking about, perhaps try sharing some code that we can test and run straight away… cos of course you can change colors of things.

Sorry for late response. I m talking about default Navigation bar in android which contains three buttons.Screenshot_20190618-105340_YogaTime

I have tried BottomBarBackground Background="#886464" and Opacity as well but i guess its not working.

Samsung S8
Android Pie

Oh I see, probably have to do this via foreign code: https://stackoverflow.com/a/44176128/2139770

Thanks i made it transparent.

If anyone want to change Navigation bar color in Android

[Foreign(Language.Java)]
static extern(Android) void NavBarColor()
@{
        com.fuse.Activity.getRootActivity().runOnUiThread(new Runnable() 
        {
             public void run() 
             {

                 android.view.Window window = com.fuse.Activity.getRootActivity().getWindow();
                window.clearFlags(android.view.WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
                window.addFlags(android.view.WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
                //window.setNavigationBarColor(0x00000000); //transparent
                //window.setNavigationBarColor(0x80000000); // .5 transparent
                window.setNavigationBarColor(0xff2ac3e8); // custom 

            }        });
@} 
static extern(!Android) void NavBarColor()
    {
        debug_log "SetNavigationBarColor not available on this platform";
    }
}

Make it Transparent and Add <BottomBarBackground Dock="Bottom" Background="#000" />
to use different color in different page if required.
1 Like