Created
August 15, 2012 15:56
-
-
Save mauropm/3361179 to your computer and use it in GitHub Desktop.
Complex dialog in android with a view
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var table = Titanium.UI.createTableView(); | |
var row = Titanium.UI.createTableViewRow(); | |
var view = Titanium.UI.createView({backgroundColor:'red',width:20,height:20}); | |
row.height = 'auto'; | |
row.add(view); | |
table.setData(row); | |
var dialog = Titanium.UI.createOptionDialog({ | |
title: 'Hello', | |
options: ['Option 1','Option 2'], | |
cancel:1, | |
androidView: table | |
}); | |
dialog.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment