Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
mayuce committed Oct 20, 2020
2 parents 2021154 + 5c5c884 commit b2165d0
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
Binary file added images/before_app_filled.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/before_app_outlined.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/styler_app_filled.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/styler_app_outlined.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/user_profile_layout.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions readme.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ Sample app shows how to use StyleR for different app themes (Light, Dark, Blacko

* App Theme
You can change app theme without restarting you activity.
You can change app theme without restarting the activity.

image::images/styler.gif[200,300]

* 1 View to Many View
Simply it provides setting view styles programmatically
Simply StyleR allows you to set view styles programmatically.

image::images/styler_sample.gif[200,300]

Expand Down Expand Up @@ -83,6 +83,7 @@ styleRConfig {
}
}

// or you can add to top level gradle
buildscript {
repositories {
gradlePluginPortal()
Expand Down Expand Up @@ -122,6 +123,9 @@ link:https://github.com/mayuce/StyleR/blob/master/app/src/main/java/com/labters/
You can apply StyleR each view of your module. But what I suggest is create your own views under a folder which is shown in
link:https://github.com/mayuce/StyleR/tree/master/app/src/main/java/com/labters/stylerdemo/components/sampleview[*app module*].

After creating your styles, click make to project and it'll export styler.json resource to defined export directory. StyleR plug-in creates this
styler.json file. If you don't have any json file the plugin will fail your build.

Apply StyleR in your BaseView class or apply it by redeclaring the function wherever you want to call as

StyleR.applyStyle(ROOT VIEW OF GROUP, NAME OF THE VIEW STYLE)
Expand Down

0 comments on commit b2165d0

Please sign in to comment.