-
-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FragmentSlide.Builder.fragment() accepts only FragmentSlide.Fragment as parameter #1
Comments
Are you using |
Thank you for your reply, congrats on your development skills. This is my current code snippet: All i want is to create an onclicklistener for a button inside R.layout.fragment_login. |
First create a To use click events from a button inside your Then add your addSlide(new FragmentSlide.Builder()
.background(R.color.md_blue_grey_100)
.backgroundDark(R.color.md_blue_grey_600)
.fragment(new LoginFragment())
.build()); I hope this explanation helps you! |
Yes, i tried what you suggested and i get an error 'Cannot resolve method 'fragment(LoginFragment)' . |
Can you post your LoginFragment code and the exact code where you add the slide here? |
LoginFragment.java :
Now, MaterialIntroActivity.java (as seen on your repo)
|
Now I see the issue. Currently |
Catch OutOfMemoryError and set imageView GONE
First of all, Awesome plugin! But i want to create a FragmentSlider and i want to add button listeners to my fragment layout. But i get a null reference error. How do i "load" the fragment elements (and listeners) inside the current FragmentSlider ?
The text was updated successfully, but these errors were encountered: