-
Notifications
You must be signed in to change notification settings - Fork 49
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
ViewPager2 with tab navigation #87
Comments
if I recall it correctly it is not in 1.0.0, but in version 1.1.0. OK I don't have whole API or changelogs in my head, so I might be wrong.
There is version 1.1.0-rc3 of Material, but there is a bug and fix/workaround which needs more testing. Until 1.1.0 is released as stable you will have to stick with https://www.nuget.org/packages/Xamarin.Google.Android.Material/1.1.0-rc3 |
Hi, can you link the bug/workaround that is blocking this? Is this the only blocker for a stable 1.1.0 release? Is there any way I could try to contribute to this? |
i was trying to use rc3, but constructor of a TabLayoutMediator requiring 3rd parameter: ITabConfigurationStrategy and this interface looks like a C#<=>Java wrapper, so do you have any example how to implement this one? |
Well, google has done quite a lot of changes between 1.0.0 and 1.1.0 and add to that java generics which are problem to bind and "translate" to .NET world - this leads to big issue. Guys (and gals) I am working on that, but priorities might not be what you would like, but, now that GPS-FB with AndroidX dependencies are published, I'm getting closer to the point in time when I will be able to finish this. |
There is now a stable package of Xamarin.Google.Android.Material 1.1.0 available: |
Why its closed if 1.1.0.5 still requires ITabConfigurationStrategy which wasn't implemented in Xamarin.Android? This bug title is saying "ViewPager2 with tab navigation" and right now in 1.1.0.5 it can't be done without ITabConfigurationStrategy implementation. |
I'm currently having an issue with ITabConfigurationStrategy Is this a known issue? I only get this error the moment I build the project |
I do not get an error when I build and run the code I posted, so it must be something specific to your project or the way you are using it. Can you provide a repro case so I can investigate? |
@jpobst Let me try to replicate this on a separate project. |
@jpobst I'm unable to replicate this issue in a new project, when I create a new project im able to use ITabConfigurationStrategy just fine, it must be something specific to my project. |
Our team is unable to investigate this issue further without the requested information. Hopefully you found a resolution! If not, please update to the latest version of the product and if the problem still occurs, reply with the requested information and reopen this issue. |
Xamarin.Android Version (eg: 6.0):
10.2.99.180
Operating System & Version (eg: Mac OSX 10.11):
Ubuntu 19.10
Support Libraries Version (eg: 23.3.0):
Xamarin.Google.Android.Material 1.0.0
Describe your Issue:
I'm trying to implement a ViewPager2 with tab navigation, based on this guide, but I noticed that there isn't a
TabLayoutMediator
binding in theXamarin.Google.Android.Material
package. There is a workaround to do this with ViewPager2, or do I will have to wait to the next releases?The text was updated successfully, but these errors were encountered: