// Path: app/src/main/java/cn/libery/calendar/MyApp.java
// public class MyApp extends Application {
// 
//     private static MyApp myApp;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         myApp = this;
//     }
// 
//     public static MyApp getInstance() {
//         return myApp;
//     }
// }


import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import cn.libery.calendar.MyApp;
package cn.libery.calendar.utils;



/**
 * Created by Libery on 2015/8/4.
 * Email:libery.szq@qq.com
 */
public class PixelUtil {

    private PixelUtil() {
        //
    }

    /**
     * 获取屏幕宽度
     */
    public static int getWith() {
        DisplayMetrics dm = new DisplayMetrics();
// Path: app/src/main/java/cn/libery/calendar/MyApp.java
// public class MyApp extends Application {
// 
//     private static MyApp myApp;
// 
//     @Override
//     public void onCreate() {
//         super.onCreate();
//         myApp = this;
//     }
// 
//     public static MyApp getInstance() {
//         return myApp;
//     }
// }


// Path: app/src/main/java/cn/libery/calendar/utils/PixelUtil.java
import android.content.Context;
import android.content.res.Resources;
import android.util.DisplayMetrics;
import android.view.WindowManager;
import cn.libery.calendar.MyApp;

package cn.libery.calendar.utils;



/**
 * Created by Libery on 2015/8/4.
 * Email:libery.szq@qq.com
 */
public class PixelUtil {

    private PixelUtil() {
        //
    }

    /**
     * 获取屏幕宽度
     */
    public static int getWith() {
        DisplayMetrics dm = new DisplayMetrics();
        WindowManager wm = (WindowManager) MyApp.getInstance().getSystemService(Context.WINDOW_SERVICE);