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);
* Be the first to Make Comment