// 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/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }


import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import com.dim.skin.SkinConfig;
import com.dim.skin.SkinStyle;
package com.dim.skin.hepler;




/**
 * @attr ref android.R.styleable#View_background
 * Created by zzz40500 on 15/9/3.
 */
public class ViewSkinHelper extends SkinHelper {

    protected final static String MATERIALDESIGNXML = "http://schemas.android.com/apk/res-auto";
    protected final static String ANDROIDXML = "http://schemas.android.com/apk/res/android";

    protected View mView;
// 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/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }


// Path: baselibrary/src/main/java/com/dim/skin/hepler/ViewSkinHelper.java
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import com.dim.skin.SkinConfig;
import com.dim.skin.SkinStyle;

package com.dim.skin.hepler;




/**
 * @attr ref android.R.styleable#View_background
 * Created by zzz40500 on 15/9/3.
 */
public class ViewSkinHelper extends SkinHelper {

    protected final static String MATERIALDESIGNXML = "http://schemas.android.com/apk/res-auto";
    protected final static String ANDROIDXML = "http://schemas.android.com/apk/res/android";

    protected View mView;
    protected SkinStyle mSkinStyle = SkinStyle.Light;