[Chip] Chip doesn't expand with animation when checked
See original GitHub issueDescription: When I check a Chip in a ChipGroup the animation does not work properly.
Expected behavior:
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
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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top GitHub Comments
Hey,
I’ll re-open this issue for the animation. We have no plans to change this animation anytime soon even though we agree that it doesn’t look as smooth as the design site’s version.
+1
The lack of animation is jarring. It isn’t as described in the material design documentation