[ALOY-961] Alloy: Add attributedString/attributedHintText support

GitHub Issuen/a
TypeNew Feature
Resolution Date2015-01-16T15:20:17.000+0000
Affected Version/sAlloy 1.3.1
Fix Version/sAlloy 1.7.0
LabelsAttributedString, alloy
AssigneeTim Poulsen


Support for attributedString/attributedHintText in Alloy (XML, TSS).
var attributedString = Ti.UI.iOS.createAttributedString({
   // ...

// OR

function attributedString()
   return Ti.UI.iOS.createAttributedString({
      // ...

    <TextField attributedString="attributedString"/>
    <TextField attributedHintText="attributedString"/>


  1. Ritu Agrawal 2014-02-20 Moving this feature request to engineering for evaluation. Titanium 3.2.0 release introduced AttributedString concept for iOS platform and this request is to expose the same functionality on Alloy.
  2. Matej 2014-06-28 *Just a little note. These properties should work also for a ListItem with a Label (For instance). Right now it is quite complex, in some cases I think that it is not even possible.
  3. Tim Poulsen 2014-12-31 Community PR: https://github.com/appcelerator/alloy/pull/644
  4. Tim Poulsen 2014-12-31 Moving to future sprint so that we can account for TIMOB-18062 and TIMOB-15998 (Android support for AttributedString and parity across platforms). We generally avoid requiring specific SDK versions with Alloy. So optimally, we'd support both the Ti.UI.iOS.AttributedString and Ti.UI.AttributedString namespaces depending on the SDK version. Though, if building for Android with less than 3.6.0, we'd need to output an error/warn message.
  5. Tim Poulsen 2015-01-12 On hold, waiting on the resolution of TIMOB-18062
  6. Tim Poulsen 2015-01-16 Note to QE: To test: 1. Install a Titanium SDK 3.6.0.v20150115154220 or newer (so as to include cross-platform support for AttributedString) and select it as your active SDK 2. Build the included test/app/testing/ALOY\-961 app for iOS and Android. The app demonstrates using AttributedString with a label, text field, and text area. 3. Select an earlier SDK version, try building the app for either platform. You should receive an error message that AttributedString requires SDK 3.6.0 or newer. 4. All jake tests should pass with either a supporting or earlier SDK set as your active SDK version.
  7. Tim Poulsen 2015-01-16 PR merged

JSON Source