Skip to content

Instantly share code, notes, and snippets.

@mauropm
Created August 15, 2012 15:56
Show Gist options
  • Save mauropm/3361179 to your computer and use it in GitHub Desktop.
Save mauropm/3361179 to your computer and use it in GitHub Desktop.
Complex dialog in android with a view
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