Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-27788] Android: Unable to view UI.Switch when it is turned off.

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionInvalid
Resolution Date2020-03-03T12:00:22.000+0000
Affected Version/sRelease 8.3.1
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterShuo Liang
AssigneeJosh Longton
Created2020-03-03T10:01:33.000+0000
Updated2020-03-13T21:07:07.000+0000

Description

Reproduce

1. Create a sample classic app. 2. Replace app.js content with the attached app.js content. 3. Run the app on an Android device.

Problem

Observed an issue that we are not able to view switch properly if it is turned off in Android devices. Please find the attached screenshot for reference.

Attachments

FileDateSize
app.js2020-03-03T10:01:27.000+0000367
switch_off.png2020-03-03T10:01:32.000+000032921
switch_on.png2020-03-03T10:01:32.000+000034396

Comments

  1. Josh Longton 2020-03-03

    [~sliang] this is expected behaviour, the colour of the switch is blending into the background, it can be overridden with an android theme. platform/android/res/values/custom_themes.xml {noformat} {noformat} and add the theme in the android manifest in the tiapp.xml {noformat} {noformat}

JSON Source