Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Android getting status bar height
public int getStatusBarHeight(){
int result=0;\
int resourceId= getResources().getIdentifier("status_bar_height","dimen","android");
if(resourceId >0)
result = getResources().getDimensionPixelSize(resourceId);
return result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment