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

Android: Text shadow not working as expected

    Details

    • Story Points:
      2
    • Sprint:
      2016 Sprint 24 SDK

      Description

      It is great to see 3.2.0 brings text shadows for Buttons and Labels on Android. However, I does not work as I expected it to work. Only if you set the Android (and MobileWeb) specific shadowRadius property, the shadow will show. I would assume that leaving it out would default it to 0 and result in a hard shadow, just like in CSS. But instead it doesn't show at all, also when I set it to 0 myself.

      Steps to reproduce

      1. Create new project: ti create -p android,ios -n shadow --id test.shadow -d .
      2. Add the shadow properties to label1 in the default app.js:

          shadowColor: '#F00',
          shadowOffset: {
              x: 2,
              y: 2
          }
          

      3. Run the app on both iOS and Android and notice the shadow is not there on Android.
      4. Add the Android (and MobileWeb) specific shadowRadius property:

         shadowRadius: 0
         

      5. Try again and see the shadow is still not there on Android.
      6. Change the radius to 0.00001 or higher:

         shadowRadius: 0.000001
         

      7. Try again and see it now finally works.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                fmerzadyan-OLD Farzad Merzadyan (Inactive)
                Reporter:
                fokkezb Fokke Zandbergen
                Reviewer:
                Gary Mathews
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code