[TIMOB-15998] Android: Support AttributedString
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-01-15T18:37:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.0.0 |
Components | Android |
Labels | android, exalture, module_android, notable, qe-manualtest, qe-testadded |
Reporter | Mostafizur Rahman |
Assignee | Sunila |
Created | 2013-12-16T10:18:20.000+0000 |
Updated | 2015-04-10T16:01:51.000+0000 |
Description
I saw in Ti SDK 3.2.x we have added new features [AttributedString| http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.iOS.AttributedString] for iOS only. But in native android this features is already available from API level 1 but in titanium this is missing. For more information please visit http://developer.android.com/reference/java/text/AttributedString.html
I would like to request for android also.
https://github.com/appcelerator/titanium_mobile/pull/6358 Implemented support for attributed string with following properties
Sample to test
Is it possible that Ti.UI.ATTRIBUTE_LINK could respond to click events in addition to longpress? It is difficult to explain to users that they see something that looks clickable, but no, they need to longpress it.
For parity with iOS, a ticket might need to be created to change the iOS from using the "Ti.UI.iOS" prefix for all methods and variables related to AttributedString.
Closing this PR https://github.com/appcelerator/titanium_mobile/pull/6358 in favor of https://github.com/appcelerator/titanium_mobile/pull/6409 that adds iOS modifications and documentation fixes.
PR https://github.com/appcelerator/titanium_mobile/pull/6463 merged
Verified fixed using: Titanium SDK 4.0.0.v20150311105810 Studio 4.0.0.201503062102 CLI 3.4.2 Xcode 6.2 Node 0.10.36 On: Galaxy Note 2, Android 4.3
Custom fonts aren't working: AC-70