Add WebView with PageCurl effect in Android - 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.

Related

Page turn effect curl animation in webview?

I have created animation for page turning. but animation not same like curl animation. have you any idea to give webview animation for page turning curl animation. or any other animation.
please suggest me. or have you any code than please tell me.
Thank You.
I think you are checking animation like this.
Check this for more page curl animation
I'm not sure what kind of software did you use to create the page turning animation. But I find this one, you can embed animation in webpage with simple codes. Refer to http://www.flippagemaker.com/faq/embed-flash-in-existed-webpage.html.
It seems that if you are using the FlipBook Creator (http://www.flippagemaker.com/flippingbook-maker/), you can directly publish flipbook animation into html web view-able format.

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

WebView Text Selection

I want to achieve something like this -- text selection plus custom actions ..
http://www.youtube.com/watch?feature=player_embedded&v=iwmG43D0vD4
I have done sufficient research on this topic and concluded that webview text selection and overriding it functionality is not possible ..
Seems that webview's functionality is very limited atleast in the case of text manipulation.
I had decent success by accessing webview's private nativeGetSelection method ( i was able to get selected text ).. but still i was unable to suppress the default dialog box .. and using private methods dosen't seem to be a safe action tooo ..
I was about to scrap my thought of doing that project .. then i came to see that default web browser provides good text selection capability and further provides custom quick action to manipulate the text .. I am really confused at this point ....
can anyone .. with all their expertise ... point out how to achieve that behavior .. ?
what view does google docs app use to achieve that behavior .. ?
I got something similar working in 2.2 - 4.0.3. I used a javascript interface and passed all touches to it. Of course to do that you'll need enough control over the web content to include the javascript file. I have this solution in an app in production and I've put an example project on github. The github project includes the necessary js in the assets folder as well as a test page and web view that loads the test page and implements all necessary methods to handle the selection. The link to the github project is https://github.com/btate/BTAndroidWebViewSelection. Have at it.

Page curl effect for Activities in 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

Android Page Flip For Web View

Now I am trying page flip animation for web view in android
visit http://github.com/harism/android_page_curl and you can get information on how to page flip, but it is applicable only for images. What would I have to do to apply this for web view?
i had also facing same problem so I'm implementing below link but its not like page curl but full fill my requirement hope your also.
https://github.com/openaphid/android-flip
hope use full for you.

Categories

Resources