Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Flipping added views only partly redraws / crops them #11

@coffeeforyou

Description

@coffeeforyou

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions