// Path: app/src/main/java/com/github/zzwwws/rxzhihudaily/common/BaseApplication.java
// public class BaseApplication extends Application {
// 
//     private static BaseApplication instance;
// 
//     public static BaseApplication get() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = (BaseApplication) getApplicationContext();
// 
//         if (AppConfig.DEBUG) {
//             StrictModeUtil.startStrictMode();
//         }
//         ScreenUtil.GetInfo(instance);
//     }
// }


import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.util.Log;
import com.github.zzwwws.rxzhihudaily.common.BaseApplication;
import java.lang.reflect.Field;
            field = c.getField("status_bar_height");
            x = Integer.parseInt(field.get(obj).toString());
            sbar = context.getResources().getDimensionPixelSize(x);
        } catch (Exception E) {
            E.printStackTrace();
        }
        return sbar;
    }

    public static int getNavBarHeight(Context context) {
        Resources resources = context.getResources();
        int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
        if (resourceId > 0) {
            return resources.getDimensionPixelSize(resourceId);
        }
        return 0;
    }

    public static int dip2px(float dipValue) {
        final float scale = ScreenUtil.getDisplayDensity();
        return (int) (dipValue * scale + 0.5f);
    }

    public static int px2dip(float pxValue) {
        final float scale = ScreenUtil.getDisplayDensity();
        return (int) (pxValue / scale + 0.5f);
    }

    private static float getDisplayDensity() {
        if (density == 0) {
// Path: app/src/main/java/com/github/zzwwws/rxzhihudaily/common/BaseApplication.java
// public class BaseApplication extends Application {
// 
//     private static BaseApplication instance;
// 
//     public static BaseApplication get() {
//         return instance;
//     }
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         instance = (BaseApplication) getApplicationContext();
// 
//         if (AppConfig.DEBUG) {
//             StrictModeUtil.startStrictMode();
//         }
//         ScreenUtil.GetInfo(instance);
//     }
// }


// Path: app/src/main/java/com/github/zzwwws/rxzhihudaily/common/util/ScreenUtil.java
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.util.Log;
import com.github.zzwwws.rxzhihudaily.common.BaseApplication;
import java.lang.reflect.Field;

            field = c.getField("status_bar_height");
            x = Integer.parseInt(field.get(obj).toString());
            sbar = context.getResources().getDimensionPixelSize(x);
        } catch (Exception E) {
            E.printStackTrace();
        }
        return sbar;
    }

    public static int getNavBarHeight(Context context) {
        Resources resources = context.getResources();
        int resourceId = resources.getIdentifier("navigation_bar_height", "dimen", "android");
        if (resourceId > 0) {
            return resources.getDimensionPixelSize(resourceId);
        }
        return 0;
    }

    public static int dip2px(float dipValue) {
        final float scale = ScreenUtil.getDisplayDensity();
        return (int) (dipValue * scale + 0.5f);
    }

    public static int px2dip(float pxValue) {
        final float scale = ScreenUtil.getDisplayDensity();
        return (int) (pxValue / scale + 0.5f);
    }

    private static float getDisplayDensity() {
        if (density == 0) {
            GetInfo(BaseApplication.get());