emilsjolander / android-FlipView

A small, easy to use android library for implementing flipping between views as seen in the popular Flipboard application
Apache License 2.0
924 stars 273 forks source link

4.3 rendering issues #13

Closed panzerdev closed 10 years ago

panzerdev commented 11 years ago

the flip doesn't render right anymore. if you have no 4.3 device I can make a video.

emilsjolander commented 11 years ago

I recently saw this problem. I talked to Romain guy on the android team and it sounds like it's a android issue, they were working on a fix ;)

panzerdev commented 11 years ago

Great! I just disabled the upper and lower part of the image for API level 18 for now so it just flips without the card effect. Thx for the support! :-)

emilsjolander commented 11 years ago

i would suggest you use a viewpager on API 18 if at all possible :)

hoangpn412 commented 11 years ago

I have same error, but I don't know how to fix it. Please help me, thank you very much !

emilsjolander commented 11 years ago

there is no way to fix it now. I amrewriting some core parts of the library which will be released this or next weekend, hopefully that will help

hoangpn412 commented 10 years ago

wait fix bug !

alhambra81 commented 10 years ago

Look foward to your rewrite code.

emilsjolander commented 10 years ago

yeah, the rewrite is almost done. you can have a look in the preloading branch. This however does not fix the 4.3 bug which i will have a hard time fixing. Will look into work arounds

hoangpn412 commented 10 years ago

Hey, can you tell me why this app error with android 4.3

hoangpn412 commented 10 years ago

Dear emilsjolander,

I downloaded preloading branch and run sample project. But the error in activity_main.xml is: The following classes could not be instantiated:

emilsjolander commented 10 years ago

Ok i tested this on 4.4 and it works as expected. Confirming once again that this was an android bug. As 4.3 had fairly low traction i will not try to release a work around. closing issue now

burtbenigni commented 10 years ago

Hi guys,

we fix render right problem changing 2 lines in drawPreviousHalf() and drawNextHalf() methods in FlipView class. Instead of drawChild(canvas, p.v, 0); we change to p.v.draw(canvas); Don't know if it's the right way, but now it works great also under Android 4.3.

Remains a minor problem on API 18: right half glitch after flipping animation ends. Any suggestion?

hoangpn412 commented 10 years ago

No, it is not a good solution.

On Thu, Mar 6, 2014 at 8:44 PM, Burt notifications@github.com wrote:

Hi guys,

we fix render right problem changing 2 lines in drawPreviousHalf() and drawNextHalf() methods in FlipView class. Instead of drawChild(canvas, p.v, 0); we change to p.v.draw(canvas); Don't know if it's the right way, but now it works great also under Android 4.3.

Remains a minor problem on API 18: right half glitch after flipping animation ends. Any suggestion?

Reply to this email directly or view it on GitHubhttps://github.com/emilsjolander/android-FlipView/issues/13#issuecomment-36888542 .

emilsjolander commented 10 years ago

drawChild() ensures that the view is drawn using a hardware layer when supported, So this is not a good solution as this is a must to ensure good performance

hoangpn412 commented 10 years ago

Emil Sjölander: can you resolve this problem !

On Fri, Mar 14, 2014 at 4:29 PM, Emil Sjölander notifications@github.comwrote:

drawChild() ensures that the view is drawn using a hardware layer when supported, So this is not a good solution as this is a must to ensure good performance

Reply to this email directly or view it on GitHubhttps://github.com/emilsjolander/android-FlipView/issues/13#issuecomment-37629531 .

emilsjolander commented 10 years ago

As it's a bug in only 4.3 so i don't feel like putting a lot of time into it. Will look into maybe doing some form of workaround for this version specifically