Code Monkey home page Code Monkey logo

checkable-chip-view's Issues

contains references to both AndroidX and old support library

checkablechipview-1.0.2.aar' contains references to both AndroidX and old support library. This seems like the library is partially migrated. Jetifier will try to rewrite the library anyway.
Example of androidX reference: 'androidx/core/content/res/TypedArrayKt'
Example of support library reference: 'android/support/v4/graphics/ColorUtils'

IllegalArgumentException: Attribute not defined in set.

IllegalArgumentException: Attribute not defined in set.

I am adding programmatically and getting exception.

My Code is:

private CheckableChipView createCrowdChipView(String title) {
        CheckableChipView chipView = new CheckableChipView(mContext);
        chipView.setCheckedTextColor(Color.WHITE);
        chipView.setOutlineColor(ContextCompat.getColor(mContext, R.color.color_white_faded));
        chipView.setOutlineCornerRadius(4f);
        chipView.setOutlineWidth(1);
        chipView.setText(title);
        chipView.setDefaultTextColor(Color.BLACK);
//        chipView.setLayoutParams(new LinearLayout.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));
        return chipView;
    }

Help Me

Cannot be used in a recycler view

Caused by: java.lang.IllegalArgumentException: Attribute not defined in set.
at androidx.core.content.res.TypedArrayKt.checkAttribute(TypedArray.kt:31)
at androidx.core.content.res.TypedArrayKt.getStringOrThrow(TypedArray.kt:194)
at com.github.okdroid.checkablechipview.CheckableChipView.(CheckableChipView.kt:155)
at com.github.okdroid.checkablechipview.CheckableChipView.(CheckableChipView.kt:59)
at com.github.okdroid.checkablechipview.CheckableChipView.(Unknown Source:6)

Bug when double tap a chip

When you double tap a chip, before the animation has finished, it will register the click and undo the action, while the animation will keep happening as if nothing happened.

Am I clear enough?

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.