...
Name | Type | Description |
---|---|---|
nome | string | Page name |
descrizione | string | Page description |
img | string | Page icon url |
imgsize | int | Page icon size in px (0-60) |
layout | string | refer to Layout Definition |
layoutoption | hash | refer to Layout Definition |
option | hash | refer to Page Content Definition |
pageoption | hash | refer to Page Option Definition |
child | array | array of page definition |
...
The app should check the key “type” if not present it shouldn't do anything. The possible value of the type key are :
...
{
type:"text",
txt:"base64 encoded"
}
In this case the app should get an base64 encode string in the key “txt” and use it inside a WebView
...
{
type:"site",
url:"link url",
open:"inside|outside"
}
In this case the app should get an url in the key “url” and check the key “open” that have 2 possible value : “inside” or “outside” In the value of the key “open” is “inside” the app should open the url into a Webview if its “outside” the app should open the link using an external call.
...
{
type:"xml",
urltype:"audio|image|news|..."
img:"true|false",
add:"addpage link"
}
All the xml type pages get they contents from the feedconverter. The View should show two (2) options menu :
- Refresh
That reload the view
- Add (optional)
This button is present if the option hash contains the key “add”. The action of this button is to open the a webview using the url contains in the “add” key.
The app should check the value of the key “urltype” that can have these values :
...
If the urltype is image the app should show a gallery
...
If the urltype is image the app should show an audio player
...
For all the others values the view should display all the content (title,description,img) using the selected layout. The view should check in case of the list layout the key “img” that specify that the img si visible (default is showed) When a item is selected the app should check the value of the key “show” that can have this value :
- link
In this case the app should open the value of the key “link” with an external call
- insidelink
In this case the app should open the value of the key “link” in a webview
- content
In this case the app should show the value of the key “content” in a webview In the “insidelink” and “content” case the app should slideshow of news with next/prev/share
...
In this case the app should check the value of the key “subtype” that can have these values :
...
In this case you should read the check the key “values” that is an array of hash with this structure :
type:"special",
subtype:"contacts",
values :{
name:"",
value:"",
type:""
}
This list should be show in a list layout setting the title with the name and the description with the value and the img url build like
/images/default/category/+type+.png
When the row is selected the app should check the type key and do a call,sms,email, web browsing.
...
{
bgcolor:"#FFFFFF",
bgalpha:0-1
}
the use of the color depend of the layout
- list
color of the odds row
- grid
color of the area of the gris
- lowpanel
color of the lowpanel background
...
{
banner:{
type:"image",
url:imgurl,
width:100,
height:100
}
}
banner to show under the header bar. it must fill the device width.
...
{
hideTitle:"...",
hideDescription:"..."
}
If the key exists replace the title / description in the layout with ””
...
{
disabled:"..."
}
if the key exists mean that the element mustnt do any account on click.
...
The Feed page cannot use the lowpanel layout and use the list as default layout The Audio Player page can only use the list layout