Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Calculate default ActionBar height
- TypedValue tv = new TypedValue();
- if (getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)){
- actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data,getResources().getDisplayMetrics());
- }
- // Height of an instance.
- // NOTE: Only works on the ActionBar/Toolbar instance
- actionBar.getHeight();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement