Coder Social home page Coder Social logo

7449 / bannerlayout Goto Github PK

View Code? Open in Web Editor NEW
93.0 4.0 20.0 10.67 MB

Support unlimited picture rotation BannerLayout, the minimum implementation of the code banner

License: Apache License 2.0

Kotlin 100.00%
bannerlayout android banner ad viewpager layout view lunbotu banners

bannerlayout's People

Contributors

7449 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bannerlayout's Issues

initTip()报错

mShopVp.initListResources(data)
.setImageLoaderManager(new ImageManager())
.initTips(true,true,false)
.setOnBannerClickListener(new OnBannerClickListener() {
@OverRide
public void onBannerClick(View view, int position, ShopViewPagerModel model) {
/* 广告页点击事件 */

                            }
                        })
                        .start(true,4000);

以上代码运行,在initTip处会报错
android.content.res.Resources$NotFoundException: Resource ID #0x0
如果用initTip()代替initTips(true,true,false)就能正常运行

刷新layout怎么做

比如请求到的网络图片发生了改变,图片张树和指示原点都需要改变

Whats happened if items count be too large (Question)

Hi there,
First of all thanks for this handy and useful library 👍

Some questions:

  1. can you share proguard rules?
  2. if items count be too large ( like 20 or greater!) whats happened to pager indicator dots?
    Is there any chance to get behavior like instagram?

thanks :)

auto start and rotate not work

compileSdkVersion,target 28

bannerLayout
.delayTime(3000)
.setOnBannerImageLoader(GlideImageLoader())
.resource(adapter)
// .addTipLayout(BannerTip(
// dotSelector = R.drawable.selector_banner_dots,
// dotSite = BannerTipLayout.CENTER,
// tipWidth = BannerLayout.MATCH_PARENT,
// 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.

和recyclerView嵌套的滑动

库很清楚很好用,但是在当作recyclerView的头部的时候,左右快速滑动,会带动上下滑动,希望能改动一下触摸事件 :)

Title的设置

你的那个title的颜色不能设置,位置和小圆点位置重叠,这可以提供接口,让用户设置,而且不支持扩展,希望可以更改

有2个标题

想要设置2个标题 一个主标题一个副标题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.