Add MediaQuery sample#47
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces a new Android sample application, MediaQuerySample, which demonstrates how to use the ExperimentalMediaQueryApi in Jetpack Compose for building adaptive UIs. The sample includes a dashboard that reacts to device posture, input peripherals, and hardware sensors. Feedback suggests removing several unused imports and redundant @OptIn annotations throughout MediaQueryDashboard.kt. Additionally, it is recommended to refactor the layout logic to reduce code duplication and to replace LocalConfiguration with the mediaQuery API for retrieving device orientation and dimensions to maintain consistency with the sample's purpose.
…e mediaQuery API in DeviceInfoCard
…and Grid naming conventions
chikoski
left a comment
There was a problem hiding this comment.
Thanks for creating the sample. I left some comments. Please take a look at them.
tiwiz
left a comment
There was a problem hiding this comment.
Just a minor comment, but overall LGTM
Add a MediaQuery sample for the adaptive apps development hub samples page.