Skip to content

Conversation

@javasuns
Copy link

@javasuns javasuns commented Oct 8, 2022

Fixes #243
Android Code Needs Implementation

@LordTylus
Copy link

Android Implementation could look like this:

        Resources resources = activity.getResources();

        int statusbarHeightResourceId = resources.getIdentifier("status_bar_height", "dimen", "android");

        if (statusbarHeightResourceId > 0)
            return resources.getDimensionPixelSize(statusBarHeightResourceId);

        return 0;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Get iOS status bar height

2 participants