Skip to content

[Chip] Chip doesn't expand with animation when checked #606

Open
@JonathanImperato

Description

@JonathanImperato

Description: When I check a Chip in a ChipGroup the animation does not work properly.

Expected behavior:
ezgif com-video-to-gif (1)

Source code:
stateChipGroup.setOnCheckedChangeListener { group, checkedId -> if (checkedId == View.NO_ID) { //user tried to uncheck the checked button group.check(lastCheckedId) return@setOnCheckedChangeListener } lastCheckedId = checkedId val chip = stateChipGroup.findViewById<View?>(checkedId) if (chip != null && chip is Chip) { when (chip.text) { getString(R.string.enabled) -> { sharedPref?.edit { putInt(CHIP_KEY_STATE, BEACON_VISIBLE) commit() } } getString(R.string.disabled) -> { sharedPref?.edit { putInt(CHIP_KEY_STATE, BEACON_INVISIBLE) commit() } } getString(R.string.both) -> { sharedPref?.edit { putInt(CHIP_KEY_STATE, BEACON_BOTH) commit() } } } vm.updateRecyclerView() } }

Current behavior
ezgif com-video-to-gif (2)

Android API version: Android API version here

Material Library version: 1.1.0-alpha08

Device: OnePlus 7 Pro, OnePlus 3t

To help us triage faster, please check to make sure you are using the latest version of the library.
Cannot since app crashes due to error #605

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions