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

Android 5 - Switch titleOn and titleOff are not displayed

    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

      Using the sample code on Titanium.UI.Switch, setting the titleOn and titleOff has no effect on Android 5, meaning that the text is not displayed. The switch control itself displays fine.

      Here is the code:

      var win = Ti.UI.createWindow({
          backgroundColor: 'white'
      });
       
      var basicSwitch = Ti.UI.createSwitch({
          titleOn:'Notifications Enabled',
          titleOff:'Notifications Disabled',
          value:true,
          width: 200, height:120
      });
      win.add(basicSwitch);
       
      basicSwitch.addEventListener('change',function(e){
          Ti.API.info('Switch value: ' + basicSwitch.value);
      });
       
      win.open();
      

        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-20301
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration