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

Android: When using Holo theme, table highlight color does not match

    Details

      Description

      Problem description

      When choosing the Holo theme for Android, the highlight color for table rows is not the right one (blue); instead, the highlight is orange. With the same theme, the pressed button is blue as it should.

      Steps to reproduce

      First of all, activate the Holo theme by adding it in the tiapp.xml:

      [...]
      android:theme="@android:style/Theme.Holo"
      [...]
      

      Then, using the following code you can verify that pressing a row in the table results in an orange highlight, while pressing the button shows a blue background:

      var win1 = Titanium.UI.createWindow({  
          backgroundColor:"#000"
      });
       
      var table = Ti.UI.createTableView();
      var rows = [];
      for(var i=1; i<=10; i++) {
          var row = Ti.UI.createTableViewRow({
              title: "Wrong color " + i
          });
          
          rows.push(row);
      } 
       
      table.setData(rows);
      win1.add(table);
       
      var button = Ti.UI.createButton({
          title: "Right color"
      });
      win1.add(button);
       
      win1.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwang Ping Wang
                Reporter:
                dcassenti Davide Cassenti
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration