Hello Everyone,
Want to get the height of on screen navigation bar ??
Here is a solution 
private int getNavigation_bar_Height(){
        Resources resources = getResources();
        int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
        if (resourceId > 0) {
            return resources.getDimensionPixelSize(resourceId);
        }
        return 0;
    }
above method will return the height of the navigation bar which is locate at the bottom of the screen.
Happy coding :)
                       
                    
0 Comment(s)