Android Compose Preview Extensions

Super‑charge your Jetpack Compose previews with production‑grade device specs for rugged enterprise handhelds and popular Android OEM devices.

24,282 devices across 2,668 manufacturers

Why This Exists

The built‑in Compose preview device list is limited and focused on consumer phones. Enterprise & vertical‑market apps often run on purpose‑built scanners, sleds and rugged handhelds with very different screen metrics.

🏭 Enterprise Ready

Support for Zebra, Honeywell, Datalogic, and other rugged enterprise devices used in warehouses, retail, and field operations.

🎯 One Import

Simple constant strings drop straight into @Preview(device = Zebra.MC33) style usage with a single import.

📊 Comprehensive Catalog

Over 24,000 devices from 2,600+ manufacturers, automatically generated and maintained with conflict resolution.

🔄 Always Updated

Automatic regeneration via Kotlin generator module ensures specs stay current with latest device releases.

📝 Deterministic Naming

Stable constant names derived from vendor model codes with intelligent conflict resolution.

📱 Google Devices

Includes Google reference devices using official id: previews for seamless integration.

Quick Start

1. Add Dependency

The library is hosted on Maven Central, so no additional repository configuration is needed if you already have mavenCentral() in your repositories block.

// Module build.gradle.kts
dependencies {
    implementation("se.premex.compose.preview:android-compose-preview-ext:1.0.0")
}

2. Use in Previews

import androidx.compose.ui.tooling.preview.Preview
import se.premex.compose.preview.device.catalog.android.Zebra

@Preview(name = "Zebra MC33", device = Zebra.MC33)
@Preview(name = "Zebra EC50", device = Zebra.EC50)
@Composable
fun MultiDevicePreview() {
    YourComposableContent()
}

Stop eyeballing layouts on a single Pixel.
Catch density, width/height & aspect issues instantly – before they ship.

Supported Device Manufacturers

Browse the complete catalog: Device Documentation

📊 Zebra - Enterprise scanners
🏭 Honeywell - Industrial handhelds
📱 Samsung - Popular Android devices
🔧 Datalogic - Rugged terminals
📱 Google - Reference devices
And 2,663+ more manufacturers