项目中使用到了图片轮播,现在总结下用法:
github地址:https://github.com/saiwu-bigkoo/Android-ConvenientBanner
1.添加依赖
本宝宝是把ConvenientBanner这个库下载下来,导入到项目中使用的,以moudle的形式使用的
当然你也可以在build.gradle中配置依赖:compile 'com.bigkoo:convenientbanner:2.0.5'
2.布局文件中的定义
<com.bigkoo.convenientbanner.ConvenientBanner
android:id="@+id/convenientBanner"
xmlns:app="http://schemas.and