over 9 years ago
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;
- }
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 :)
Can you help out the community by solving one of the following Javascript problems?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
0 Comment(s)