2

I have a layout like this :

enter image description here

I have activity, inside of activity is a fragment and a box, inside of the fragment is a recyclerview (ex. list of song title and image)

Activity -> Fragment -> RecyclerViewAdapter

I'm using this animation, it is working well but the problem is the animation moves only inside the fragment area. (based on the pic I want it to animate an item from recyclerview going to the box)

   holder.rl_main_layout.animate().x(xValue).y(yValue);

so can anyone suggest an Idea to do what I want?

Eleojasmil J Milagrosa
  • 1,944
  • 1
  • 13
  • 15
  • You can start from here: https://developer.android.com/training/transitions/index.html – Niko Jun 01 '16 at 04:08

1 Answers1

1

Fly item from recycler view to cart icon on toolbar

Please check this link , this will guide you how you can accomplish your problem

Check this link enter image description here

Community
  • 1
  • 1
satvinder singh
  • 1,152
  • 1
  • 12
  • 22