question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is there any sample code about cross activities from recyclerview to viewpager?

See original GitHub issue

Recently 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:open
  • Created 6 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
xanahoppercommented, Mar 1, 2019

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 class FromBaseListener.

0reactions
huajianjiangcommented, Apr 22, 2020

@malikthebest Cross-activity from recyclerview to viewpager, this problem solved?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found