// Path: baselibrary/src/main/java/com/dim/skin/SkinStyle.java
// public enum SkinStyle {
// 
//     Dark,
//     Light//默认Light
// }


import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ListView;
import com.dim.skin.SkinStyle;
package com.dim.skin.hepler;



/**
 * Created by zzz40500 on 15/9/4.
 */
public class ListViewSkinHelper extends ViewSkinHelper {
    private int mNightLVDivider = -1;
    private int mNightLVDividerRes = -1;
    private int mDivider = -1;
    private int mDividerRes = -1;

    public ListViewSkinHelper(Context context) {
        super(context);
    }

    @Override
    public void init(View view, AttributeSet attrs) {
        super.init(view, attrs);

        if (attrs == null) {
            mEnable = false;
            return;
        }


        mDividerRes = attrs.getAttributeResourceValue(ANDROIDXML, "divider", -1);
        if (mDividerRes == -1) {
            mDivider = attrs.getAttributeIntValue(ANDROIDXML, "divider", -1);
        }


        mNightLVDividerRes = attrs.getAttributeResourceValue(MATERIALDESIGNXML, "nightLVDivider", -1);
        if (mNightLVDividerRes != -1) {
            mNightLVDivider = attrs.getAttributeIntValue(MATERIALDESIGNXML, "nightLVDivider", -1);
        }

    }

    @Override
// 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/ListViewSkinHelper.java
import android.content.Context;
import android.graphics.drawable.ColorDrawable;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ListView;
import com.dim.skin.SkinStyle;

package com.dim.skin.hepler;



/**
 * Created by zzz40500 on 15/9/4.
 */
public class ListViewSkinHelper extends ViewSkinHelper {
    private int mNightLVDivider = -1;
    private int mNightLVDividerRes = -1;
    private int mDivider = -1;
    private int mDividerRes = -1;

    public ListViewSkinHelper(Context context) {
        super(context);
    }

    @Override
    public void init(View view, AttributeSet attrs) {
        super.init(view, attrs);

        if (attrs == null) {
            mEnable = false;
            return;
        }


        mDividerRes = attrs.getAttributeResourceValue(ANDROIDXML, "divider", -1);
        if (mDividerRes == -1) {
            mDivider = attrs.getAttributeIntValue(ANDROIDXML, "divider", -1);
        }


        mNightLVDividerRes = attrs.getAttributeResourceValue(MATERIALDESIGNXML, "nightLVDivider", -1);
        if (mNightLVDividerRes != -1) {
            mNightLVDivider = attrs.getAttributeIntValue(MATERIALDESIGNXML, "nightLVDivider", -1);
        }

    }

    @Override
    public void setSkinStyle(SkinStyle skinStyle) {