Giter Club home page Giter Club logo

covert's Issues

Cannot add item decoration during a scroll or layout

Hi,

I cannot manage to integrate Covert to my RecyclerView. When it tries to show it, I get the following error:

java.lang.IllegalStateException: Cannot add item decoration during a scroll or layout
at android.support.v7.widget.RecyclerView.assertNotInLayoutOrScroll(RecyclerView.java:2771)
at android.support.v7.widget.RecyclerView$LayoutManager.assertNotInLayoutOrScroll(RecyclerView.java:7523)
at android.support.v7.widget.LinearLayoutManager.assertNotInLayoutOrScroll(LinearLayoutManager.java:1352)
at android.support.v7.widget.RecyclerView.addItemDecoration(RecyclerView.java:1486)
at android.support.v7.widget.RecyclerView.addItemDecoration(RecyclerView.java:1514)
at android.support.v7.widget.helper.ItemTouchHelper.setupCallbacks(ItemTouchHelper.java:473)
at android.support.v7.widget.helper.ItemTouchHelper.attachToRecyclerView(ItemTouchHelper.java:466)
at nz.co.trademe.covert.Covert.(Covert.kt:122)
at nz.co.trademe.covert.Covert.(Covert.kt:88)
at nz.co.trademe.covert.Covert$Builder.attachTo(Covert.kt:581)

I tried to remove the ItemDecoration I add myself to the RecyclerView, but with no luck. Do you have an idea how I could circumvent this?

Thanks

Background color question

Hi there! Thank you for that beautiful lib.
I have a small question. Was it a special reason to set the color of the background layer as white by default? We can provide a custom color for inactive background and for active. But inactive color is used only for the reveal animation not for the initial background color.

Using Covert with ListAdapter - no animations after calling submiList()

Hi and thanks for the great library!

I have an issue when using it along with ListAdapter.

I have a DiffUtil.ItemCallback set up so that whenever I submit a new list, it handles all the item inserted/moved/removed with all the fancy animations.

When I set up Covert, it still works, but animations are no more. Am I missing something? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.