private int getAppTargetSDKVersion() {
        try {
            Context context = BaseDialog.getApplicationContext();
            if (context == null) {
                return -1;
            }
            PackageManager pm = context.getPackageManager();
            ApplicationInfo applicationInfo = pm.getApplicationInfo(context.getPackageName(), 0);
            int targetSdkVersion = applicationInfo.targetSdkVersion;
            return targetSdkVersion;
        } catch (PackageManager.NameNotFoundException e) {
            e.printStackTrace();
        }
        return -1;
    }
Applies this relative padding to the view.
DialogX/src/main/java/com/kongzue/dialogx/util/views/FitSystemBarUtils.java