Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16446] Set default color of Switch object's title to black

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid, TiAPI
Labelsn/a
ReporterTim Statler
AssigneeUnknown
Created2014-02-11T21:12:27.000+0000
Updated2018-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

Comments

No comments

JSON Source