[TIMOB-10293] Android: Transition all event names to lower case designs
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-08-17T15:26:48.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Sprint 2012-17 API, Release 3.0.0 |
Components | Android |
Labels | api, look1 |
Reporter | Blain Hamon |
Assignee | Ping Wang |
Created | 2012-08-01T16:00:25.000+0000 |
Updated | 2017-03-20T17:07:12.000+0000 |
Description
In the aug 1 architectural meeting, it was resolved that events should use only lowercase letters 'a'-'z', for reasons of consistency, aligning with W3C and for making life easy for Alloy. For example:
* android:back should be androidback
* durationAvailable should be durationavailable
To transition, lowercase versions of the events should be made, deprecating but still using the camelCase and namespaced events. Document as such. Then eventually drop the non-lowercase events.
Steps for functional test: 1. Run the test code below. See the alert "addedtotab fired". 2. Click tab1. Click BACK, SEARCH, VOLUME, CAMERA hard keys to fire events. 3. Click tab2. Scroll the scrollable view to fire events. 4. Click tab3. See the alert "durationabailable fired".
PR https://github.com/appcelerator/titanium_mobile/pull/2767
Closing ticket as fixed.