7449 / BannerLayout

Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner
Apache License 2.0
93 stars 20 forks source link

auto start and rotate not work #15

Closed leanggithub closed 4 years ago

leanggithub commented 4 years ago

compileSdkVersion,target 28

bannerLayout .delayTime(3000) .setOnBannerImageLoader(GlideImageLoader()) .resource(adapter) // .addTipLayout(BannerTip( // dotSelector = R.drawable.selector_banner_dots, // dotSite = BannerTipLayout.CENTER, // tipWidth = BannerLayout.MATCHPARENT, // dotWidth = 30, // dotHeight = 30, // tipHeight = 60)) .addOnItemClickListener { view, , info -> val openURL = Intent(Intent.ACTION_VIEW) openURL.data = Uri.parse(info.title) startActivity(openURL) }

// xml <com.android.banner.BannerLayout android:id="@+id/bannerLayout" android:layout_width="match_parent" android:layout_height="150dp" app:banner_guide="true" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toTopOf="parent" /> same your exam.

7449 commented 4 years ago

<com.android.banner.BannerLayout android:layout_width="match_parent" android:layout_height="150dp" app:banner_guide="true" />

guide applies to start page guidance, not banner

leanggithub commented 4 years ago

thank you