极度缺人中,有没有想来一起写代码的
jeasonwong / qingtingbannerview Goto Github PK
View Code? Open in Web Editor NEW仿蜻蜓FM轮播banner
仿蜻蜓FM轮播banner
how can this be resolved??
BannerView中ViewPager的滚动监听是add的,banner在RecyclerView或者listView中重新绑定数据的时候监听器会多次添加,导致指示器在刷新后显示会出错。先clean掉所有的监听器在add
rt
你好 请问一下回调方法中
public void onPageScrolled(int position, float positionOffset, int positionOffsetPixels) { bannerLine.setPageScrolled(position, positionOffset); if (positionOffsetPixels == 0.0) { if (position == entities.size() - 1) { bannerViewPager.setCurrentItem(1, false); } else if (position == 0) { bannerViewPager.setCurrentItem(entities.size() - 2, false); } else { bannerViewPager.setCurrentItem(position); } } }
else if (position == 0) { bannerViewPager.setCurrentItem(entities.size() - 2, false); }
删除这个判断代码,运行效果好像没看出不同呢,请指教~
Hi @JeasonWong
From the last commit i see you merged https://github.com/JeasonWong/QingtingBannerView/tree/MikeCoder-master to master branch.
I see that it has auto scroll function under development.
I think you must review it again, since from my last commit, i already implemented auto scroll function.
And i think mine is simpler and easy to use with function to stop auto scroll directly to comply Activity lifecycle(onStop), so it will avoid Activity leak
How can i use onClickListener
or onTouchListener
with BannerView
???
I have tried using the following but it only works for the first TextView
final TextView tv = (TextView) mBannerView.findViewById(R.id.tv_banner_title);
tv.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Toast.makeText(activity.getApplicationContext(), tv.getText(), Toast.LENGTH_SHORT).show();
}
});
how to do
RT
I dive to the code directly to find any method to hide bottom text, but can't seem to find it. Is there any way to do it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.