Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Navigation Bar Height

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 174
    Comment on it

    Hello Everyone,

    Want to get the height of on screen navigation bar ??

    Here is a solution

    1. private int getNavigation_bar_Height(){
    2.  
    3. Resources resources = getResources();
    4. int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
    5. if (resourceId > 0) {
    6. return resources.getDimensionPixelSize(resourceId);
    7. }
    8. return 0;
    9. }

    above method will return the height of the navigation bar which is locate at the bottom of the screen.

    Happy coding :)

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: