先引入BGA 依赖
compile 'cn.bingoogolapple:bga-banner:2.1.7@aar'
**
放轮播的布局
**
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:orientation="vertical">
<cn.bingoogolapple.bgabanner.BGABanner
android:layout_width="match_parent"
android:layout_height="300dp"
android:id="@+id/banner"
app:banner_pageChangeDuration="2000"
></cn.bingoogolapple.bgabanner.BGABanner>
</LinearLayout>
**
OkHttp请求网络数据
**
import android.os.Han