// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcBanner.java
// public class xcBanner {
// 
//     /**
//      * id : 1249
//      * type : 2
//      * title : 钢琴体验券免费送
//      * desc : 星空琴行-渠道（吴春威）
//      * image : http://ww4.sinaimg.cn/large/6ef77e5ejw3f51u8t8xjtj20hs08c0vc.jpg
//      * start_time : 2016-06-22 14:35:28
//      * url : http://www.51xiancheng.com/article/40634
//      * article_id : 40634
//      */
// 
//     private int id;
//     private int type;
//     private String title;
//     private String desc;
//     private String image;
//     private String start_time;
//     private String url;
//     private int article_id;
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public void setType(int type) {
//         this.type = type;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public void setDesc(String desc) {
//         this.desc = desc;
//     }
// 
//     public void setImage(String image) {
//         this.image = image;
//     }
// 
//     public void setStart_time(String start_time) {
//         this.start_time = start_time;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public void setArticle_id(int article_id) {
//         this.article_id = article_id;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public int getType() {
//         return type;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public String getDesc() {
//         return desc;
//     }
// 
//     public String getImage() {
//         return image;
//     }
// 
//     public String getStart_time() {
//         return start_time;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public int getArticle_id() {
//         return article_id;
//     }
// }


import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.huijimuhe.commonlayout.data.xc.xcBanner;
import java.util.ArrayList;
import java.util.List;
import cn.bingoogolapple.bgabanner.BGABanner;
package com.huijimuhe.commonlayout.widget;





/**
 * Copyright (C) 2016 Huijimuhe Technologies. All rights reserved.
 * <p/>
 * Contact: 20903213@qq.com Zengweizhou
 * <p/>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
public class BannerView extends BGABanner {
    private BannerClickListener l;
    private Context mContext;

    public BannerView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mContext = context;
    }

    public BannerView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        mContext = context;
    }

// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/data/xc/xcBanner.java
// public class xcBanner {
// 
//     /**
//      * id : 1249
//      * type : 2
//      * title : 钢琴体验券免费送
//      * desc : 星空琴行-渠道（吴春威）
//      * image : http://ww4.sinaimg.cn/large/6ef77e5ejw3f51u8t8xjtj20hs08c0vc.jpg
//      * start_time : 2016-06-22 14:35:28
//      * url : http://www.51xiancheng.com/article/40634
//      * article_id : 40634
//      */
// 
//     private int id;
//     private int type;
//     private String title;
//     private String desc;
//     private String image;
//     private String start_time;
//     private String url;
//     private int article_id;
// 
//     public void setId(int id) {
//         this.id = id;
//     }
// 
//     public void setType(int type) {
//         this.type = type;
//     }
// 
//     public void setTitle(String title) {
//         this.title = title;
//     }
// 
//     public void setDesc(String desc) {
//         this.desc = desc;
//     }
// 
//     public void setImage(String image) {
//         this.image = image;
//     }
// 
//     public void setStart_time(String start_time) {
//         this.start_time = start_time;
//     }
// 
//     public void setUrl(String url) {
//         this.url = url;
//     }
// 
//     public void setArticle_id(int article_id) {
//         this.article_id = article_id;
//     }
// 
//     public int getId() {
//         return id;
//     }
// 
//     public int getType() {
//         return type;
//     }
// 
//     public String getTitle() {
//         return title;
//     }
// 
//     public String getDesc() {
//         return desc;
//     }
// 
//     public String getImage() {
//         return image;
//     }
// 
//     public String getStart_time() {
//         return start_time;
//     }
// 
//     public String getUrl() {
//         return url;
//     }
// 
//     public int getArticle_id() {
//         return article_id;
//     }
// }


// Path: CommonLayout/app/src/main/java/com/huijimuhe/commonlayout/widget/BannerView.java
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.huijimuhe.commonlayout.data.xc.xcBanner;
import java.util.ArrayList;
import java.util.List;
import cn.bingoogolapple.bgabanner.BGABanner;

package com.huijimuhe.commonlayout.widget;





/**
 * Copyright (C) 2016 Huijimuhe Technologies. All rights reserved.
 * <p/>
 * Contact: 20903213@qq.com Zengweizhou
 * <p/>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
public class BannerView extends BGABanner {
    private BannerClickListener l;
    private Context mContext;

    public BannerView(Context context, AttributeSet attrs) {
        super(context, attrs);
        mContext = context;
    }

    public BannerView(Context context, AttributeSet attrs, int defStyle) {
        super(context, attrs, defStyle);
        mContext = context;
    }

    public void initBanners(List<xcBanner> banners) {