-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Ozodrukh edited this page Jun 4, 2015
·
2 revisions
ConfigurationWidget
The main purpose of library is made prototyping easier by changing some configuration on the fly. Define JSON config file and when configs are changed apply changes in application.
{
"Application Information": {
"type": "BuildConfigInformation",
"object": "codetail.green.sample.BuildConfig"
},
"Device Information": {
"type": "DeviceInformationModule"
},
"API Module":[
{
"key": "productFlavor",
"type": "Spinner",
"value": 1,
"entities": {
"#0": "ProductionMode",
"#1": "DeveloperMode"
}
},
{
"key": "endpoint",
"type": "EditText",
"hint": "Endpoint url"
}
],
"Network Information":{
"type": "NetworkInformation",
"show_flag": "only_active_network"
},
"Traffic Stats":{
"type": "NetworkInformation",
"update_delay": 5000,
"show_flag": "only_traffic_stats"
},
"class": "codetail.green.sample.PicassoCard",
"Picasso":[
{
"type": "CustomCheckBox",
"key": "indicators_enabled",
"title": "Indicators",
"value": false
},
{
"type": "CustomCheckBox",
"key": "logging_enabled",
"title": "Logging",
"value": true
}
],
"class": "codetail.green.sample.TakeAScreenCard",
"Utils":{}
}
will generate next configuration widget