-
Notifications
You must be signed in to change notification settings - Fork 42
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
Dealing with Multiple Fragments in a ViewPager #22
Comments
Hello. Can you set up a sample repo project and send me a link so that I could take a look? Thanks. |
I've run into same issue @irvine752 has described: I solved this way:
} This way, it doesn't matter how many times we swipe right or left, PersistentSearchView will always work :) Thank you @mars885 for this library, you saved me a lot of time 👍 |
@artemius30 Thanks for sharing your solution. However, it's more like a workaround and the behavior is definitely not right. I suspect that there might be some issue with loosing focus over the If someone can set up a reproducible repo and send me a link to it so that I could take a look when I have time, I'll be extremely thankful. |
@mars885 Thank you for your help. Since it's in a public repository, you should be able to import it via: git clone https://github.com/artemius30/TestSearchView.git Basically, it's made of a ViewPager which contains 2 Fragments. Hope this will help you understand the issue :) Thank you again, hope to hear from you soon. |
Thanks for the update on this issue. @artemius30 saw the same issue as I did. Do we have any update on a potential fix so far? For now, I will update my code to use the fix mentioned above. I was also wondering if there's a way to customize or remove the speech to text Google warning. |
Sorry @irvine752 . I haven't heard from anyone about this... Can't help you with Speech to Text functionality, didn't had chance to try it. |
@mars885 Any updates so far? |
I have a couple of fragments in a viewPager2. Two of the fragments have persistent search views. When I toggle back & forth between the fragments, tapping to activate the search query does not work.
I was thinking it's related to the Lifecycle of the fragments which toggles between pause & resume depending on which fragment is active. Do we need to do anything special when multiple instances of the persistent search views are active at a time?
The text was updated successfully, but these errors were encountered: