轮播的依赖
implementation ‘com.github.donkingliang:CustomBanner:1.1.3’
一、推荐类的布局——R.layout.one_item1
<LinearLayout xmlns:android=“http://schemas.android.com/apk/res/android”
android:layout_width="match_parent"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:orientation="vertical"
android:layout_height="wrap_content"
android:gravity="center|top">
<com.facebook.drawee.view.SimpleDraweeView
fresco:placeholderImage="@mipmap/ic_launcher"
android:id="@+id/item_sdv"
android:layout_width="270dp"
android:layout_height="180dp" />
<TextView
android:id="@+id/item_title"
android:text="ssss"
android:layout_width="220dp"
android:layout_height="wr