I'm working on a project where i need to change between different Webviews on swipe. I want to apply a page curl animation to the webviews on each swipe, i.e., when we swipe on a webview it should get curled and the next webview should be displayed. Can anyone please help me regarding this.
Thanks a lot.
It's not possible (asfaik). There is a similar post here, where they suggest javascript but it only seems to work for iOS. That said you could try taking an image of the screen and putting it as an overlay of the webview and then use page curl on the image.
Related
I'm building a phonegap(cordova) application and it is working great for android, but there is some scrolling issue with iOS build i-e i cannot scroll pages from anywhere on the screen except the middle-right and middle-left of the screen and that area is very less, i want to scroll by swiping anywhere on the screen just like it works in Android.
Anyone else faces the same issue, share your knowledge and experience.
Although without a code sample it is difficult to advice.. I had similar experiences in ios phonegap development and you need to be sure that the css overflow attribute is correctly setup for all elements.
One major 'trick' that you need is to add
-webkit-overflow-scrolling: touch;
To the container you like to scroll.
See this page for info about the css property.
I am using ionicFramework with Cordova to build an App. My requirement is to show (front) camera feed inside my app (say at top right corner of the app).
Unfortunately "cordovaCapture" is not working for me. "navigator.camera" just opens camera view, but my requirement is to show its feed in a container so its also not fitting in requirement.
I tried backgroundvideo plugin also.
Please help me in understanding, Is it possible to access camera feed without going native app approach ? Please share any leads.
Thanks in Advance.
I'll just point you to the right direction:
https://github.com/cordova-plugin-camera-preview/cordova-plugin-camera-preview
https://github.com/donaldp24/CanvasCameraPlugin
Try these plugins (in order) and lemme know if either of them worked out for you.
Happy Friday to all.
I was wondering if there is a way to open an external link within the app itself? I currently can execute a link, but it opens it in a browser. I would like to open a site or two within the app.
Can this be done?
Oh, please tell me it can be, because this is one of the reasons why I am creating my app in Eclipse instead of Dreamweaver...html can only limit so much stuff!
please and thank you help me figure this out.
Cady
Yes, you need to use a WebView and load the html into it yourself.
Note that by default a WebView only displays html content. The plugins and javascript are off, and it does not handle link clicks, or forward / backward navigation
http://developer.android.com/reference/android/webkit/WebView.html
You can use a WebView to open HTML pages inside your app. There's a nice little tutorial in the docs showing the use of its basic features.
You can use WebView, put it in your layout and load URLs to show websites inside your app.
Yes it can be done, you can use a WebView to load the content inside your activity.
i want to curl the page on the touch or drag the page to show the curl effect
like in iphone and ipad. I have searched over the net and came accross this link :-
Page curl/turn effect in Android
but the code listed out there is for curling a bitmap while i want to curl a view
Is there any possibility that using view type animation in android i can achieve this??
The code listed out on the link is heavy to understand bt still is there a possibility that
changing the code above will make me achieve this task??
Can I use a HTML page as a Live Wallpaper?
Or is it possible to capture a web page as an image and set it as a wallpaper?
Any help would be greatly appreciated.
I am the author of the mentioned WebLiveWallpaper. It can use both techniques: Showing a web snapshot from snapr, webthumb, ... but normally it is really a WebView which has disadvantages but also some advantages. A web snapshot/thumb image cannot update animated images fast enough. But it avoids the problems a 'hacked' WebView in a live wallpaper has (like missing images, huge memory footprint).
I think what you want is using one of these:
http://www.websnapr.com/
http://webthumb.bluga.net/home
http://snapr.seekxl.de
They all have more and better documentation on their sites than I can put in here. Mostly it is simply a picture from their url with your key and some settings.
There is an app on the market called WebLiveWallpaper that does this. There is an option in it for how often to refresh the view of the web page, which leads me to believe that it is simply taking a snapsnot of the page and presenting it as an image some how. Unfortunately I wouldn't know how to go about setting that up. But I think you're definitely going to want to go the image route.
Edit Here are some links that may help you out:
Open source Java library to produce webpage thumbnails server-side
http://www.acasystems.com/en/web-thumb-activex/
http://www.fileguru.com/apps/convert_html_to_image_in_java
I have not used any of these components before so I'm not positive about them but they seem like they can do what your looking for .