Returns a ListDialog object.
For more information in the detailed docs see CreateListDialog
Example - Example
function OnStart()
{
dlg = app.CreateListDialog( "Choices", "Add,Remove,Delete" );
dlg.SetOnTouch( dlg_OnTouch );
dlg.Show();
}
function dlg_OnTouch( item )
{
app.ShowPopup( item );
}
Example - Multi
function OnStart()
{
dlg = app.CreateListDialog( "Days", "Mon,Tues,Wed,Thurs,Fri,Sat,Sun", "Multi" );
dlg.SetOnTouch( dlg_OnTouch );
dlg.Show();
}
function dlg_OnTouch( item, isChecked )
{
app.ShowPopup( item + " isChecked = " + isChecked );
}
The following methods are available on the ListDialog object:
string
string: "Multi" or "?"
number: -180..180
number: -100..100
number: 100..100
number: 0..100
Adjust the visual color effect of the control by setting the Hue (by angle in degrees in a color circle), the saturation, brightness and contrast of the control.
hide dialog
Returns the control class name.
string: comma separated: "boolean", "char", "byte", "short", "int", "long", "float", "double"
Allows access to other functions defined on the object in Java via reflection.
string:
hexadecimal: "#rrggbb", "#aarrggbb"
colourName: "red", "green", ...
Changes the background color of the control.
string: path to file or folder ( "/absolute/..." or "relative/..." )
string: "repeat"
Changes the background to an image which can be repeated using the repeat option.
An image which is often used with that option is '/res/drawable/pattern_carbon' - try it out!
function()
Define a callback function that is called when the user touches the control.
number
string: "" or "spx"
Change the size of the control in either screen relative values or in pixels if the px option was given.
Change the TextColor of the contained text.
change dialog title
Set the visibility of the control to "Show".