CarouselView icon indicating copy to clipboard operation
CarouselView copied to clipboard

Flipping added views only partly redraws / crops them

Open coffeeforyou opened this issue 7 years ago • 0 comments

Hi Nazar, at first thanks a lot for producing this amazing library!

I encountered problems only when trying to flip a view on clicking. In the attached screenshots of the demo application you provided, you can see the screen before and after flipping, and you will notice that the view which has been flipped is cropped.

I updated your demo application to illustrate the problem in the simplest way possible, and I've uploaded the apk file: app-debug.zip

My customization of your demo app:

  • Added new layout file ("flip_view") with RelativeLayout and two ImageViews (for front and back)
  • Included code for flipping the "flip_view" in CarouselFragment.java

What I tried:

  • Modifying the CarouselItemHolder, so that it would fill the parent, but I did not really manage to achieve this.
  • I played around with invalidate etc., but situation unchanged.
  • I changed the way of flipping (XML, ObjectAnimator, ViewPropertyAnimator), but situation unchanged.

I'd be super happy about any hint what the reason for this behavior could be!

Before flipping: screenshot_20170808-231449

After flipping: screenshot_20170808-231456

Thanks a lot again for any support you could provide!

coffeeforyou avatar Aug 08 '17 20:08 coffeeforyou