Page curl effect for Activities in Android - android

I need page curl effect for Activities in Android as in iPhone.
I checked the following links
http://code.google.com/p/android-page-curl/
https://github.com/harism/android_page_curl/
But both are useful for Bitmap (Images) only but i need curling effect at startActivity() i.e, when i am going for new Activity.
Is it possible ? and how ?

#surendra
Here is one good example explaining how you can add page curl to activity...
http://devappandroid.com/android-beginner/page-curlturn-effect-android

Related

Page curl effect for Activities in Android like as Iphone is it possible?

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.
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.
Disable transition animations for this two Activities.
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).
Launch second activity without animation and then start animating your bitmap over existing activity content by using one of this libs
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.

Add WebView with PageCurl effect in Android

I am trying to display certain text in android which has text with numbers and bullets which I have achieved by using a HTML page. I am also familiar on how to add the webview but as I am using a PageCurl, I am unable to display the contents of webview in android.
CODE :
private int[] mBitmapIds = { R.layout.sample, R.layout.sample,
R.layout.sample, R.layout.sample, R.layout.sample,
R.layout.sample };
This is how I am using a page curl, all the XML files will be added to an array to be displayed in a page curl. This is what I have tried so far :
View sample = getLayoutInflater().inflate(R.layout.sample,null);
we = (WebView) sample.findViewById(R.id.admission_procedure_webview);
we.loadUrl("file:///android_asset/admission_prcedure.html");
I know its really dumb but I had to try something. I googled all over but was unable to find any solid lead. Some had even mentioned that it is impossible to achieve it. Found em at here and here. I am using one of the most popular page curl library.
How do I add a web view to page curl ? Any help will be much appreciated.
After a long search, I finally found a library which helps in achieving the page TURN in android with webview. Please be noted that its not page curl but has a decent effect for turning page. You can find the library here. Finally, I have also come to a conclusion that it is not possible to achieve Webview with a page curl. Please let me know if someone has found how to add web view with a page curl.

how to change next page using swipeview in android?

am new to android.am doing simple aphabate app.in that app am using alphabetes letters.when swipe on the letter how it will move to next letter.please give me suggestions
thanks in advance
I would like to suggest u to tak a look at the following Android Dev blog post about using ViewPager in the Android Compatibility Package to implement the swipe functionality you're looking for:
http://android-developers.blogspot.com/2011/08/horizontal-view-swiping-with-viewpager.html
The recommended approach is most likely to use a Fragment for the chat history and text input field as this will give you the most flexibility across devices.
Try this link: In this link he is showing listview item on swipe.
Check the complete code here

android: How can I implement first time tutorial like Go Launcher in my app?

Go Launcher have a nice first-time tutorial. it is very similar to Stock ICS first time run. I want to learn how to make the similar tutorial display at the first launch of my app. How can I implement this Transparent view (which interacts with screen objects) in my android app?
I was trying to do something similar using a transparent activity with a viewpager inside it. I wanted static 'tutorial' images that users could swipe through.
One of the answers to my question mentioned an interesting library (called ShowcaseView). It seems like it may be a good fit for your requirements as well.
https://github.com/Espiandev/ShowcaseView
You can either use a FrameLayout or RelativeLayout as root of your Activity/Fragment, and put your "first time" View upon content with a (almost) transparent background, or use another Activity/Fragment themed with a transluscent window. (like this)
I'd rather use an Activity/Fragment, but this is up to you!
I wrote little library That contains a simple component for making ​​a app tour. It`s very restricted to my case but maybe could be your case . Single LessonCardView Showed onstartactivity for the first time or on button click Any criticism ,help or advice will be appreciated. thanks https://github.com/dnocode/DnoLib
You can implement a first-time user guide with the Spotlight library by TakuSemba.
It is similar to the one shared above and it is still well-maintained (as of 2021).
https://github.com/TakuSemba/Spotlight

how can i give curl effect to my activity?

i have designed an form in that form contain button when i click on the button next page should display in next page also an activity. my requirement is I want to implement page curl animation on button click.
I also got page curl animation code from github https://github.com/harism/android_page_curl , but still am confused with how to implement this project as in my application. can u please tell me how can i do that.
Thanks in advance.
Have a look at android_page_curl. This is easy to implement and and have examples for easy understanding.

Categories

Resources