Is there any sample code about cross activities from recyclerview to viewpager?
See original GitHub issueRecently I try to implement a cross activities demo. But I found that the ToActivity will flash at the moment it finished(). I use a SimpleTracker to generate ViewTransitionAnimator like:
GestureTransitions.from(fromRecyclerView, fromTracker).into(viewPager, pagerTracker)
only different is that fromRecyclerView is in FromActivity and viewPager in ToActivity.
I try to hide/show origin ImageView like your sample code but pageAdapter.getViewHolder always return null. I don’t know how to do it.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Passing data from recyclerview adapter of activity-1 to ...
1.You can use Single Object (singleton) for your fragment. In your fragment use, private static DetailsFragment ourInstance = new ...
Read more >Load and display paged data - Android Developers
The Paging library provides powerful capabilities for loading and displaying paged data from a larger dataset. This guide demonstrates how ...
Read more >Continuous Shared Element Transitions: RecyclerView to ...
We will demonstrate how to implement a transition from an image in a RecyclerView into an image in a ViewPager and back, using...
Read more >RecyclerView to ViewPager2 with MaterialViewPager | Android
Sample PageTransformers are available in official Android Documentation here . Create a kotlin file for simple PageTransformer from below code.
Read more >Dynamic ViewPager Indicators With RecyclerView Items in ...
I will show you how to handle all this by using a RecyclerView Adapter with items as indicators and keeping the same sync...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have already solved this problem and maybe pack and post it later. The main focus of solution is to write your own
FromRecyclerViewListener
extend from an internal classFromBaseListener
.@malikthebest Cross-activity from recyclerview to viewpager, this problem solved?