I have been finding a way to implement animation like Facebook and Google Photos. When in 2nd Activity, when dragging images the images follow and the 2nd Activity started to fade out and we see 1st Activity. Images of what I was trying to ask is here.

- 17,357
- 9
- 82
- 98

- 141
- 1
- 5
-
Hey..Can you give me your mail id so that i can share demo with you..May be it will help you..!! – AndiGeeky Oct 05 '15 at 05:12
-
@AndiGeeky can you please also share the demo with me? – Vipul Asri Oct 05 '15 at 05:54
-
@vipul_asri : I want to do the same so i need your mail id so that i can share because demo is on my google drive so..!! – AndiGeeky Oct 05 '15 at 05:55
-
1@AndiGeeky my mail id is vipulasri.2007@gmail.com. Thank you so much – Vipul Asri Oct 05 '15 at 05:56
-
@vipul_asri : Shared..Welcome..!! – AndiGeeky Oct 05 '15 at 05:59
-
https://github.com/Commit451/ElasticDragDismissLayout – ChristopheCVB May 27 '16 at 18:17
-
Can you please share the code to my email id perepamanohar@gmail.com @AndiGeeky – Manu May 02 '19 at 04:09
2 Answers
I have found some code from Nick Butcher sample code.
ElasticDragDismissFrameLayout.java
and when using it:
chromeFader = new ElasticDragDismissFrameLayout.SystemChromeFader(getWindow()) {
@Override
public void onDragDismissed() {
finishAfterTransition();
}
};

- 1
- 1

- 141
- 1
- 5
Was you able to find a full fledged solution for this ?
https://github.com/nickbutcher/plaid , It might give clues to entry transition and how that was accomplished . So it might help you there. But how about when you want to drag and dismiss that activity?
https://github.com/Commit451/ElasticDragDismissLayout , Its an interesting library. Does do drags . But doesn't remember the position where the thumbnail where it was launched from. Only handles 1 swipe direction and dismisses by sliding to the right. So its not that close to what they do in 2017 Jun Google Photos Android application. You might have to modify it.
If anyone knows a better solution to this please do share.

- 51
- 5