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

Android 5 - Picker in AlertDialog has offset background

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Release 4.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Android 5
      Ti SDK 4.1.0.v20150427212043

      Description

      On Android 5, if you create a picker and add it as the androidView in an alertDialog, the background of the selected picker item is offset.

      Here is the code to repro:

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
          exitOnClose: true,
          layout: 'vertical'
      });
      win.open();
       
      var picker = Ti.UI.createPicker({
          useSpinner: true,
          selectionIndicator: true,
          left: 0, right: 0
      });
       
      var data = [];
      data[0] = Ti.UI.createPickerRow({ title: 'Landlord' });
      data[1] = Ti.UI.createPickerRow({ title: 'Property Manager' });
       
      picker.add(data);
       
      var alertDialog = Ti.UI.createAlertDialog({
          title: 'Are you a Landlord or a Property Manager?',
          androidView: picker,
          buttonNames: [
              'Cancel',
              'Done'
          ]
      });
      alertDialog.show();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jtoth Justin Toth
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20302
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code