acbelter / directionalcarousel Goto Github PK
View Code? Open in Web Editor NEWThis is custom ViewPager. It may have a horizontal or vertical orientation and can be infinite or not.
This is custom ViewPager. It may have a horizontal or vertical orientation and can be infinite or not.
Hallo,
Thank you for your code. i'm customing your source code. I have made list that field with image. It's work in demo, but when i used in my source code, show error android.content.res.Resources$NotFoundException: Resource ID #0x0 in class CarouselViewPager on method getPageContentWidth().
Can you help me? Trims
I brought your code into a test project but getting this error
java.lang.ClassCastException: com.example.macbookpro.test4.fglayout.ForegroundRelativeLayout cannot be cast to com.example.macbookpro.test4.page.PageLayout
at com.example.macbookpro.test4.CarouselPagerAdapter.getPageView(CarouselPagerAdapter.java:212)
at com.example.macbookpro.test4.CarouselPagerAdapter.onPageScrolled(CarouselPagerAdapter.java:117)
At this method :
private PageLayout getPageView(int position) {
String tag = mConfig.getPageFragmentTag(position);
Fragment f = mFragmentManager.findFragmentByTag(tag);
if (f != null && f.getView() != null) {
return (PageLayout) ((ViewGroup) f.getView()).getChildAt(0); // <---- here!
}
return null;
}
Any idea what Im doing wrong?
When I am importing the code from git hub its landing page behaves in weird way while apk from google plays working fine.Please update your code here
Hi,
How can I synchronized this library with another viewpager when I scrolling/swipping on it? Example: This library will be my top menu, I will have another viewpager filled with fragments. Thanks in advance
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.