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

Android: Picker selected row does not highlight multi line text completely

    Details

      Description

      In Android if we create a picker and set the picker row text some large value that can not be set in a single line. Then picker selectedRow lighter does not highlight complete selected row.

      Sample code to test issue*

      var win1 = Titanium.UI.createWindow({
          title : 'Picker Demo',
          backgroundColor : '#fff'
      });
       
      var overlay = Ti.UI.createView({
          backgroundColor : '#000',
          opacity : 0.2
      });
      var column = Ti.UI.createPickerColumn();
      var data = ["This is for testing purpose only", "Development purpose", "Multiple column Pickers with type plain, date and time pickers"];
      for (var i = 0, ilen = data.length; i < ilen; i++) {
       
      column.addRow(Ti.UI.createPickerRow({
          title : data[i]
      }));
      }
      var picker = Ti.UI.createPicker({
          type : Ti.UI.PICKER_TYPE_PLAIN,
          //width : Ti.UI.FILL,
          selectionIndicator : true,
          bottom : 0,
          columns : [column],
          useSpinner : true
      });
      var container = Ti.UI.createView({
          bottom : 0,
          layout : 'vertical',
          height : Ti.UI.SIZE,
          width : Ti.UI.FILL
      });
       
      var backgroundView = Ti.UI.createView({
          height : Ti.UI.SIZE,
          width : Ti.UI.FILL,
          backgroundColor : 'transparent'
      });
      backgroundView.add(picker);
      container.add(backgroundView);
       
      picker.setSelectedRow(0, 1, false);
       
      win1.add(overlay);
      win1.add(container);
       
      win1.open();
      

      Steps:
      1: Use the sample code in a Titanium Project and put it on app.js file.
      2: Test the sample on any android device(preferred is Samsung S3 and Nexux).
      3: Picker selected row highlighter does not highlight complete text.

        Attachments

          Activity

            People

            • Assignee:
              pwang Ping Wang
              Reporter:
              anigam Ashish Nigam
              Reviewer:
              Hieu Pham
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code