-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why are there two column count attributes? #32
Comments
This is discussed in #9. We could add a columnCount property that works as you describe but removing the existing properties isn't an option. Willing to contribute this change? |
Also see #26 |
Why can't you remove the existing ones? 2.0.0 is calling! |
I read #9. I don't think you should make the public API suffer because someone is forced to handle configuration changes. You could easily add the config change port/land column count handling in a subclass that's internal to your app. |
I'd agree that having it match the grid API more closely would make it an
|
A new column_count attribute has been added that overrides orientation specific values. The sample and the README have been updated to reflect this as best practice. I plan kill off the old values in v1.1. |
There are two column count attributes - portrait and landscape. Are they needed?
I would expect only
columnCount
, and if I needed a different number for landscape, I'd include another layout in my layout-land directory which would have a different value forcolumnCount
(if that was the only difference in my layout for landscape, I could use@integer/columnCount
, so I'd have two resource files for integers instead).It suggests that the view checks for device orientation; should that be the view's responsibility?
The text was updated successfully, but these errors were encountered: