-
Notifications
You must be signed in to change notification settings - Fork 0
1. How It Works
Muhammet Ali YUCE edited this page Oct 20, 2020
·
1 revision
StyleR has its own merger plugin, when you're coding the view you will create style.json for the view. This style.json basically looks like:
{
"SampleView": [
{
"id": "tv_header",
"style": "AppText.Header"
},
{
"id": "tv_description",
"style": "AppText",
"textSize": 12,
"textColor": "red"
},
{
"id": "iv_header",
"elevation": 8
}
]
}
First key is the name of style for the view. You can create endless different styles for your view. The value of the key is list of maps. Each member of this list represents the child views of the parent view group. You must provide each view with its ID and set the properties which is you would like to add your view by StyleR. Let the StyleR does its job then 😇
// TODO This part will be added soon