Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26793

Android: Hide radio buttons OptionDialog

    Details

      Description

      The current OptionDialog displays the items on Android as RadioButtons. You don't have the possibility to hide those circles.

      To create a dialog that looks more like the iOS version:

      I've added a parameter called textOnly

      var win = Ti.UI.createWindow({
      	title: 'Click window to test OptionDialog',
      	backgroundColor: 'white'
      });
       
      var opts = {
      	title: 'Select an option',
      	options: ['Option 1', 'Option 2', 'Option 3', 'Option 4'],
      	textOnly: true,
      	buttonNames: ['Cancel']
      }
       
      var dialog;
      win.addEventListener('click', function() {
      	dialog = Ti.UI.createOptionDialog(opts);
       
      	dialog.addEventListener('click', onSelectDialog);
      	dialog.addEventListener('cancel', function(e) {
      		alert('Dialog canceled! e.cancel = ' + e.cancel + ', e.index = ' + e.index);
      	})
       
      	dialog.show();
      });
       
      function onSelectDialog(e) {
      	console.log(e);
      }
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                michael Michael Gangolf
                Tester:
                Samir Mohammed
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Source Code