问题
This question is short.
How do I set a background for buttons and such, that will have the native look&feel of Lollipop (ripple etc...) for Lollipop and above, and Kitkat style for Kitkat and below?
I ask this to make this library look better:
https://github.com/AndroidDeveloperLB/MaterialPreferenceLibrary
回答1:
I think this is possible by declaring the different 'styles' in the corresponding 'values' folder. I think the following link can help:
http://developer.android.com/training/material/compatibility.html#Theme
来源:https://stackoverflow.com/questions/30461770/how-to-create-a-background-selector-that-has-kitkat-style-for-pre-lollipop-and