Created
April 15, 2021 03:12
-
-
Save paulproteus/7b58abb5622b2de6883ee50c68619378 to your computer and use it in GitHub Desktop.
actionbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypedValue tv = new TypedValue(); | |
if (getTheme().resolveAttribute(android.R.attr.actionBarSize, tv, true)) | |
{ | |
int actionBarHeight = TypedValue.complexToDimensionPixelSize(tv.data,getResources().getDisplayMetrics()); | |
Log.e(TAG, "HI action bar " + actionBarHeight); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment