# Lemenzo UI v1.0

Lemenzo UI is the shared Android design system for LemenzoOS apps.
It contains reusable colors, dimensions, typography, drawables and framework-only custom views. It has no dependency on AndroidX or Material Components and is intended for AOSP/Soong builds.

## Included components

- `SecureLineHeroView`
- `SecureLineCard`
- `SecureLineInfoCard`
- `SecureLineWarningCard`
- `SecureLineDangerCard`
- `SecureLineDashboardRow`
- `SecureLineProtectionRow`
- `SecureLineStatusBadge`
- `SecureLineSectionHeader`
- Primary, secondary and danger button styles
- Shared switch, dialog, typography, spacing, radius and semantic color tokens

## AOSP integration

Place this folder at:

```text
packages/libs/SecureLineUI
```

Add the library to an app's `Android.bp`:

```bp
android_app {
    name: "SecureLineProtect",
    srcs: ["src/**/*.java"],
    resource_dirs: ["res"],
    static_libs: ["SecureLineUI"],
    certificate: "platform",
    privileged: true,
    platform_apis: true,
}
```

Use the shared theme in the app manifest:

```xml
<application android:theme="@style/SecureLineUI.Theme" />
```

## XML example

```xml
<com.secureline.ui.SecureLineHeroView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:slHeroTitle="Lemenzo Protect"
    app:slHeroSubtitle="Advanced protection for your LemenzoOS device"
    app:slHeroStatus="Realtime protections active" />

<com.secureline.ui.SecureLineProtectionRow
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="12dp"
    app:slProtectionTitle="USB Protection"
    app:slProtectionSubtitle="Hardcore Data Wipe"
    app:slProtectionEnabled="true" />
```

Declare the application namespace on the root layout:

```xml
xmlns:app="http://schemas.android.com/apk/res-auto"
```

## Design rule

Apps compose SecureLine UI components. They do not create independent colors, card shapes or typography unless a product-specific exception is documented.
