alexa

How do I get the bottom navigation bar height for Material Design 3 in android ?

How do I get the bottom navigation bar height for Material Design 3 in android ?

Maybe you can try to get the height programmatically and set margin bottom dynamically during runtime?

 Resources resources = context.getResources();
int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
if (resourceId > 0) {
    navBar.getLayoutParams().height = resources.getDimensionPixelSize(resourceId);

254 0
7

Write a Comments


* Be the first to Make Comment

GoodFirms Badge
GoodFirms Badge

Fix Your Meeting With Our SEO Consultants in India To Grow Your Business Online

Facebook
Twitter
LinkedIn
Instagram
Whatsapp
Call Now
Quick Inquiry