[TIMOB-1929] Android: Add Checkbox Widget
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-04-17T01:57:34.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Release 1.5.0 M01 |
| Components | Android |
| Labels | android, feature |
| Reporter | Don Thorp |
| Assignee | Don Thorp |
| Created | 2011-04-15T03:05:51.000+0000 |
| Updated | 2011-04-17T01:57:34.000+0000 |
Description
Same semantics as switch, just use underlying Checkbox control.
npmccallum has kindly written some code for this, available https://github.com/appcelerator/titanium_mobile/pull/12">here. Example of checkbox http://img52.imageshack.us/img52/8670/usbtether.png">here
Pull request: https://github.com/appcelerator/titanium_mobile/pull/16">https://github.com/appcelerator/titanium_mobile/pull/16
New properties added.
style: one of Ti.UI.Android.SWITCH_STYLE_TOGGLEBUTTON(default) or Ti.UI.Android.SWITCH_STYLE_CHECKBOXtitle: text for CheckBoxtitleOff: text for ToggleButton whenvalueisfalsetitleOn: text for ToggleButton whenvalueistrue(from [99483b01ee68327daa5df0255c6e05b86d566a17]) [#1929 state:fix-in-qa] documentation for new Android Checkbox support https://github.com/appcelerator/titanium_mobile/commit/99483b01ee68327daa5df0255c6e05b86d566a17"> https://github.com/appcelerator/titanium_mobile/commit/99483b01ee68...
(from [ce9f7f7c2df3c8233c714152627c60bc604f082f]) [#1929 state:open] implementation, need api docs. Merge branch 'checkbox' of https://github.com/npmccallum/titanium_mobile">https://github.com/npmccallum/titanium_mobile into npmccallum-checkbox https://github.com/appcelerator/titanium_mobile/commit/ce9f7f7c2df3c8233c714152627c60bc604f082f"> https://github.com/appcelerator/titanium_mobile/commit/ce9f7f7c2df3...
in with API docs.
closed against 1.5.0.602d6d G2, G1, sim 2.1