Skip to content

Latest commit

 

History

History
60 lines (45 loc) · 1.17 KB

README_public.md

File metadata and controls

60 lines (45 loc) · 1.17 KB

zds-android

Zebra Design System components for Android.

Setup

This has been tested with compileSdkVersion 34. Other sdk versions may require additional work.

  1. Add Zebra Maven repository to settings.gradle:
dependencyResolutionManagement {
    repositories {
        maven {
            ...
            url "https://zebratech.jfrog.io/artifactory/zds-android/"
        }
    }
}
  1. Add dependency to app-level build.gradle
dependencies {
    ...
    implementation 'com.zebra:zds:1.0.0'
    ...
}
  1. To use and style the components in AndroidManifest.xml place in the application tag the base Zebra theme, and be sure to remove other styles if they could override this incorrectly.
<application
    ...
    android:theme="@style/Theme.ZdsBase"
    ...
/>
  1. Use components. Example:
<com.zebra.zds.ZdsButton
    style="@style/Zds.Button.Primary"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:text="Button"
    android:theme="@style/Zds.Button.Primary"/>