Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

Android webview #407

Closed
wgmp opened this issue Dec 23, 2013 · 7 comments
Closed

Android webview #407

wgmp opened this issue Dec 23, 2013 · 7 comments

Comments

@wgmp
Copy link

wgmp commented Dec 23, 2013

Hi!

Awesome lib sir - thank you!

I've been using skrollr in a page loaded into a webview - work very nicely on iOS, feels pretty seamless with the native app, but not much fun on the embedded webview in Android.

http://disciplemedia.co.uk/sandpit/the-pit.html (Note I've borrowed some of the assets from the Pharell Williams piece built using scrollerama I think, but we're not affiliated. Just some handy resources to use).

I know that prior to 4.4 the webview is a hardly-maintained webkit view - but I'm only animating one property, so according to the various posts out there it should work, but no cigar. Getting the blank screen issue that others report.
https://daneden.me/2011/12/14/putting-up-with-androids-bullshit/

Do you have any tips to make this work?

Thanks again,
Will.

@Prinzhorn
Copy link
Owner

It does work on the default Android browser on my S2, which should be the same rendering engine. There's this issue with Android: #175 but you say your window is completely white. There must be something completely wrong.

@wgmp
Copy link
Author

wgmp commented Dec 23, 2013

Thanks for the quick response!

My error, it's a black screen, though it does seem to have a gradient,
screenshot attached.

Also, it's an embedded webview. The default android browser displays ok on
HTC one mini too, it's just when embedded I get the issue.

Best, William.
On 23 Dec 2013 13:13, "Alexander Prinzhorn" [email protected]
wrote:

It does work on the default Android browser on my S2, which should be the
same rendering engine. There's this issue with Android: #175https://github.com/Prinzhorn/skrollr/issues/175but you say your window is completely white. There must be something
completely wrong.


Reply to this email directly or view it on GitHubhttps://github.com//issues/407#issuecomment-31118363
.

@Prinzhorn
Copy link
Owner

Attachments won't appear in GitHub comments, you need to upload them here.

I don't know how I could help you, sorry.

@wgmp
Copy link
Author

wgmp commented Dec 23, 2013

OK, sorry, noob error.

I've got to get a bit more forensic on this, will post any useful
resolution.

Do you know of anyone using skrollr ok in an android webview (pre 4.4)?
On 23 Dec 2013 15:20, "Alexander Prinzhorn" [email protected]
wrote:

Attachments won't appear in GitHub comments, you need to upload them here.

I don't know how I could help you, sorry.


Reply to this email directly or view it on GitHubhttps://github.com//issues/407#issuecomment-31124208
.

@Prinzhorn
Copy link
Owner

Do you know of anyone using skrollr ok in an android webview (pre 4.4)?

Nope, haven't heard of any.

@wgmp
Copy link
Author

wgmp commented Jan 3, 2014

OK. So now it works like a dream - on Android and iOS, and totally comparable to the native code for smooth animation.

Issue was the webview container being sized to zero height at start, all the 100% high sections were a bit short. :). With the web view initialized at full screen in the native app we're good.

I can see the standard Android webview bug, where only the first css property gets animated, but we can work round it and bar that it's great.

Thanks again for your quick response previously, and an awesome library!

Best, W.

@wgmp wgmp closed this as completed Jan 3, 2014
@Prinzhorn
Copy link
Owner

Nice to hear!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants