Skip to content

Add MediaQuery sample#47

Open
JonEckenrode wants to merge 7 commits intomainfrom
add-mediaquery-sample
Open

Add MediaQuery sample#47
JonEckenrode wants to merge 7 commits intomainfrom
add-mediaquery-sample

Conversation

@JonEckenrode
Copy link
Copy Markdown

Add a MediaQuery sample for the adaptive apps development hub samples page.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant