Skip to content

Complementary OneUI6 design lib and sample app implementing SESL 6 modules

License

Notifications You must be signed in to change notification settings

tribalfs/oneui-design

 
 

Repository files navigation

OneUI6 Design Lib and sample app

This design lib is consists of custom components intended to complement and integrate with both SESL6 Android Jetpack Modules and SESL6 Material Components for Android.

Usage

repositories {
  //other remote repositories
  
   maven {
      url = uri("https://maven.pkg.github.com/tribalfs/oneui-design")
      credentials {
          username = "<gh_username>"
          password = "<gh_access_token>"
      }
   } 
}
dependencies {
  //sesl and other dependencies
  
  implementation("io.github.tribalfs:oneui-design:0.1.5+oneui6")
}
  • Add the the following to your app's AndroidManifest file:
<application
    ...
    android:theme="@style/OneUITheme">

    <!-- This enables your app to apply the OneUI device's color pallete.
     Note: android:value corresponds to the filename of the xml file
     that needs to be added to the res/xml folder. Filename can be different.-->
    <meta-data
        android:name="theming-meta"
        android:value="meta_998_sesl_app" />

    </application>
  • Create theme mata data xml file (e.g. meta_998_sesl_app.xml) with the following content and add it to the app's res/xml folder:
<?xml version="1.0" encoding="utf-8"?>
<ThemeMetaData FormatVersion="1.3" GuideVersion="1.4">
    <AppMetaData Name="<Any name>" TargetApi="21" TargetPackageName="<app.package.name>" VersionCode="1" VersionName="">
        <Include RefName="SESL" />

    </AppMetaData>
</ThemeMetaData>

Download Sample APK

Credits

About

Complementary OneUI6 design lib and sample app implementing SESL 6 modules

Resources

License

Stars

Watchers

Forks

Languages

  • Kotlin 51.2%
  • Java 48.8%