gluonhq / attach

GNU General Public License v3.0
49 stars 26 forks source link

Get Status Bar Height on iOS #335

Open javasuns opened 1 year ago

javasuns commented 1 year ago

Fixes #243 Android Code Needs Implementation

LordTylus commented 1 year ago

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;