[ALOY-1143] Alloy: textid does not work for android
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-09-19T14:28:48.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | TCSupport, alloy |
Reporter | Paul Jassal |
Assignee | Unknown |
Created | 2014-08-28T17:55:19.000+0000 |
Updated | 2018-03-07T22:28:28.000+0000 |
Description
Problem Description
Label will fail in ALLOY in Android. The above in an alloy xml works correctly for iOS, but not android.TESTING ENVIRONMENT:
Titanium SDK: 3.2.3.GA and 3.3.0.GA Titanium CLI: 3.3.0 OS X Version: 10.9.3 Android API Level: 17 and 19 iOS: 7.1.2 Alloy: 1.4.1TEST CODE:
index.xml
<Alloy>
<Window backgroundColor="#fff" >
<Label top="25" color="#000" textid="Label TextID" />
</Window>
</Alloy>
STEPS TO TEST:
- Create a simple alloy project. - Update index.xml with test code - Run on iOS device/simulator, works fine - Run on android device/emulator, it’s not workingComments
- Tim Poulsen 2014-09-19
The string names (textid value) should not include spaces:
textid="Label TextID"
is invalid. The fact that it works on iOS is because that platform natively handles internationalization strings differently. For Android, you must use UTF-8 strings, with no spaces. - Eric Merriman 2018-03-07 Closing as invalid. If this is incorrect, please reopen.