// Path: baselibrary/src/main/java/com/dim/skin/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }
// 
// Path: baselibrary/src/main/java/com/dim/widget/SLayoutParamsI.java
// public interface SLayoutParamsI {
// 
//      void setSkinStyle(SkinStyle skinStyle);
// }
// 
// Path: baselibrary/src/main/java/com/dim/skin/SkinConfig.java
// public class SkinConfig {
// 
//     public static SkinStyle getSkinStyle(Context context) {
//         SharedPreferences sharedPreferences = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE);
//         boolean nightMode = sharedPreferences.getBoolean("nightMode", false);
//         return nightMode ? SkinStyle.Dark : SkinStyle.Light;
//     }
// 
//     public static void setSkinStyle(Context context, SkinStyle skinStyle) {
//         SharedPreferences.Editor editor = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE).edit();
//         editor.putBoolean("nightMode", skinStyle == SkinStyle.Dark).apply();
//     }
// 
// }
// 
// Path: baselibrary/src/main/java/com/dim/skin/SkinEnable.java
// public interface SkinEnable {
// 
//     void setSkinStyle(SkinStyle skinStyle);
// }


import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import com.dim.skin.SkinStyle;
import com.dim.widget.SLayoutParamsI;
import com.dim.skin.SkinConfig;
import com.dim.skin.SkinEnable;
package com.dim.skin.hepler;



/**
 * Created by zzz40500 on 15/9/4.
 */
public class SkinCompat {

    public interface SkinStyleChangeListener {
        void beforeChange();

        void afterChange();
    }

    /**
     * @param activity                当前 Activity
     * @param skinStyle               Dark(夜间),Light(日间)
     * @param skinStyleChangeListener (转换监听器)
     */
// Path: baselibrary/src/main/java/com/dim/skin/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }
// 
// Path: baselibrary/src/main/java/com/dim/widget/SLayoutParamsI.java
// public interface SLayoutParamsI {
// 
//      void setSkinStyle(SkinStyle skinStyle);
// }
// 
// Path: baselibrary/src/main/java/com/dim/skin/SkinConfig.java
// public class SkinConfig {
// 
//     public static SkinStyle getSkinStyle(Context context) {
//         SharedPreferences sharedPreferences = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE);
//         boolean nightMode = sharedPreferences.getBoolean("nightMode", false);
//         return nightMode ? SkinStyle.Dark : SkinStyle.Light;
//     }
// 
//     public static void setSkinStyle(Context context, SkinStyle skinStyle) {
//         SharedPreferences.Editor editor = context.getSharedPreferences("SkinStyle",
//                 Activity.MODE_PRIVATE).edit();
//         editor.putBoolean("nightMode", skinStyle == SkinStyle.Dark).apply();
//     }
// 
// }
// 
// Path: baselibrary/src/main/java/com/dim/skin/SkinEnable.java
// public interface SkinEnable {
// 
//     void setSkinStyle(SkinStyle skinStyle);
// }


// Path: baselibrary/src/main/java/com/dim/skin/hepler/SkinCompat.java
import android.app.Activity;
import android.view.View;
import android.view.ViewGroup;
import com.dim.skin.SkinStyle;
import com.dim.widget.SLayoutParamsI;
import com.dim.skin.SkinConfig;
import com.dim.skin.SkinEnable;

package com.dim.skin.hepler;



/**
 * Created by zzz40500 on 15/9/4.
 */
public class SkinCompat {

    public interface SkinStyleChangeListener {
        void beforeChange();

        void afterChange();
    }

    /**
     * @param activity                当前 Activity
     * @param skinStyle               Dark(夜间),Light(日间)
     * @param skinStyleChangeListener (转换监听器)
     */
    public static void setSkinStyle(Activity activity, SkinStyle skinStyle, SkinStyleChangeListener skinStyleChangeListener) {