Can styles be different for different screen sizes?
问题 I have a GridView in my app, and I would like to manually set the number of columns based on the current screen width. What I attempted to do was set up a style that should be applied to the GridView, and provide an alternative style in the values-w600dp folder, with the android:numColumns attribute set to a different value. This didn't work. I'm aware there are different ways to achieve what I initially proposed (for example by declaring an integer resource and use it in the common style),