Skip to content

Complementary OneUI6 Design Library for SESL6 modules with a Sample App showcasing commonly-used OneUI widgets

License

Notifications You must be signed in to change notification settings

tribalfs/oneui-design

 
 

Repository files navigation

OneUI6 Design Lib

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.3.7+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>

Sample apps

Credits

About

Complementary OneUI6 Design Library for SESL6 modules with a Sample App showcasing commonly-used OneUI widgets

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Kotlin 78.0%
  • Java 22.0%