[TIMOB-16446] Set default color of Switch object's title to black
| GitHub Issue | n/a |
|---|---|
| Type | Improvement |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Android, TiAPI |
| Labels | n/a |
| Reporter | Tim Statler |
| Assignee | Unknown |
| Created | 2014-02-11T21:12:27.000+0000 |
| Updated | 2018-02-28T20:03:15.000+0000 |
Description
Steps:
1. Create app (Alloy or classic) that displays a Switch control with
SWITCH_STYLE_CHECKBOX style, e.g:
<Alloy>
<Window class="container">
<Switch id="basicSwitch2"
title="Option name"
style="Titanium.UI.Android.SWITCH_STYLE_CHECKBOX" />
</Window>
</Alloy>
2. Build for Android.
Result: Checkbox label is white by default, so doesn't appear on white background.
Expected: Checkbox label is black by default, like most Titanium label/text objects.
Found the solution from a StackOverflow poster who encountered same problem:
http://stackoverflow.com/questions/14171078/title-is-not-displayed-in-a-checkbox-in-titanium
No comments