Android-MaterialPreference icon indicating copy to clipboard operation
Android-MaterialPreference copied to clipboard

CheckBoxPreference misses Lollipop style click animation

Open jenzz opened this issue 10 years ago • 4 comments

Title says it all...

jenzz avatar Feb 14 '15 16:02 jenzz

Note: The official SwitchCompat widget doesn't animate either...

jenzz avatar Mar 24 '15 01:03 jenzz

I've found a good workaround for these issues is to create a xml-v21 with XML that mirrors your preferences with their native counterparts

msutherland4807 avatar Mar 24 '15 01:03 msutherland4807

Sure, @msutherland4807. However, that would enable animations on Lollipop only, so it's not really backward-compatible. Also, I personally don't like to maintain two almost identical preferences.xml files. My idea of this little library was to have one XML file that provides consistent Material design widgets across all API levels.

I'm still hoping for an update to the AppCompat library which backports some of these things and also moves widgets like TintCheckBox out of the internal package into public scope.

jenzz avatar Mar 24 '15 09:03 jenzz

Agreed entirely. I also just noticed that the new Nova Launcher material beta has animations on it's Switches (but not CheckBoxes), perhaps that could help with this. I'll look into the apk when I get a chance

msutherland4807 avatar Mar 25 '15 03:03 msutherland4807