// Path: nightowllib/src/main/java/com/asha/nightowllib/paint/IOwlPaint.java
// public interface IOwlPaint {
//     void draw(View view, Object value);
//     Object[] setup(View view, TypedArray a, int attr);
// }


import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.ListView;
import com.asha.nightowllib.paint.IOwlPaint;
package com.asha.nightowllib.paint.imps;



/**
 * Created by hzqiujiadi on 15/11/13.
 * hzqiujiadi ashqalcn@gmail.com
 */
public class ListViewSelectorPaint implements IOwlPaint {
    @Override
    public void draw(View view, Object value) {
        ListView listView = (ListView) view;
        listView.setSelector((Drawable) value);
    }

    @Override
    public Object[] setup(View view, TypedArray a, int attr) {
        ListView listView = (ListView) view;
        Drawable drawable1 = listView.getSelector();
// Path: nightowllib/src/main/java/com/asha/nightowllib/paint/IOwlPaint.java
// public interface IOwlPaint {
//     void draw(View view, Object value);
//     Object[] setup(View view, TypedArray a, int attr);
// }


// Path: nightowllib/src/main/java/com/asha/nightowllib/paint/imps/ListViewSelectorPaint.java
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.view.View;
import android.widget.ListView;
import com.asha.nightowllib.paint.IOwlPaint;

package com.asha.nightowllib.paint.imps;



/**
 * Created by hzqiujiadi on 15/11/13.
 * hzqiujiadi ashqalcn@gmail.com
 */
public class ListViewSelectorPaint implements IOwlPaint {
    @Override
    public void draw(View view, Object value) {
        ListView listView = (ListView) view;
        listView.setSelector((Drawable) value);
    }

    @Override
    public Object[] setup(View view, TypedArray a, int attr) {
        ListView listView = (ListView) view;
        Drawable drawable1 = listView.getSelector();
        Drawable drawable2 = a.getDrawable(attr);