0

I need page curl effect for Android Activities.

I have two pages(Activities),how can I go for next page(activity) by using page curl in android.

Click this link for reference Android Page Curl . and Page Curl Effect on Android

any answers and helps are great appreciation.

Konrad Krakowiak
  • 12,285
  • 11
  • 58
  • 45
RaMeSh
  • 3,330
  • 2
  • 19
  • 31

1 Answers1

0

First of all - do not do things like this with Activities:) But if you are really want to do it here is the way you looking for.

  1. Disable transition animations for this two Activities.

  2. Save a screenshot of your current activity(by using getDrawingCache()) and send it to second activity(or draw a view using WindowManager, there is a very simple lib for it). Most efficient way i know is using MemoryFile, details could be found here. Or just use a static reference to a bitmap object(be careful with it).

  3. Launch second activity without animation and then start animating your bitmap over existing activity content by using one of this libs

  4. It could be tricky to pass touch events from one Activity to another or window manager. Honestly, I don't know how you could effectively do it. One of the variants is sending fake touch events.

That's all I think. In single Activity, it would be much easily and you could still wrap all your logic into View or Fragment.

Community
  • 1
  • 1
Stepango
  • 4,721
  • 3
  • 31
  • 44