-
Notifications
You must be signed in to change notification settings - Fork 5.1k
[Jetsnack] Add Previews #549
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
Conversation
|
||
@Preview("default", "round") | ||
@Preview("dark theme", "round", uiMode = UI_MODE_NIGHT_YES) | ||
@Preview("api 21", "round", apiLevel = 21) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does behavior vary by API level? Seems strange to only set one API level?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't have an actual need in this sample as we don't rely on changing APIs within our previews. Better to drop it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One question about API level preview, otherwise LGTM.
For me, it made sense to include the minSdkVersion vs the targetSdkVersion. They shouldn't differ, but if you forget to use Compat classes, they might. I don't have a strong feeling about this though. Would like to get @yrezgui 2 cents on this! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would remove @Preview("api 21", "round", apiLevel = 21)
as we don't have an actual need in this sample as we don't rely on changing APIs within our previews. Better to drop them
|
||
@Preview("default", "round") | ||
@Preview("dark theme", "round", uiMode = UI_MODE_NIGHT_YES) | ||
@Preview("api 21", "round", apiLevel = 21) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we don't have an actual need in this sample as we don't rely on changing APIs within our previews. Better to drop it
@yrezgui I removed the API level previews. Let me know if this is better! |
No description provided.