首先添加如下依赖 compile 'com.youth.banner:banner:1.4.10' 具体操作看github(https://github.com/youth5201314/banner)