Skip to content

Implement Preview Groups for Device Brand in Compose Preview Utils #22

@warting

Description

@warting

Feature Request: Preview Groups by Device Brand

Overview

Enable developers to preview Jetpack Compose UI components across all devices of a selected brand (e.g., Zebra) using the device catalog. This will streamline UI testing and QA for brand-specific behaviors and layouts, especially for enterprise or rugged device fleets.

Motivation

  • Developers often need to ensure their UI works seamlessly across devices from a particular manufacturer or brand (e.g., Zebra for enterprise, Samsung for consumers).
  • Manual previewing is tedious and error-prone; automating this process saves time and catches brand-specific issues early.

Proposed Solution

  • Add a "Preview Group" API and UI selector to Compose Preview utils.
  • Allow users to select a device brand (e.g., Zebra) and preview their composables across all cataloged devices from that brand.
  • Support additional filtering (e.g., model, screen size) in future iterations.

Acceptance Criteria

  • Developers can choose a brand and see Compose previews for all devices in that brand within Android Studio.
  • Grouping logic uses the device catalog fields (Brand, Model, Manufacturer, etc.).
  • API and documentation updated to describe Preview Groups usage.

Additional Context

This feature is especially valuable for teams targeting enterprise fleets, field service apps, or branded device launches.


If this matches your needs, please 👍 or comment with additional requirements!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions