Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28370] Android: Add "title" support to Ti.UI.Switch slider style

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2021-06-10T17:17:45.000+0000
Affected Version/sn/a
Fix Version/sRelease 10.0.1
ComponentsAndroid
Labelsandroid, slider, switch, title
ReporterJoshua Quick
AssigneeJoshua Quick
Created2021-02-25T08:18:37.000+0000
Updated2021-06-10T17:17:45.000+0000

Description

*Summary:* We should add "title" property support to Ti.UI.Switch when it is set to "style" Ti.UI.SWITCH_STYLE_SLIDER. This allows the text to the left of the switch to align perfectly next to it. *Note:* The Ti.UI.Switch on Android already handles the "textAlign" property, which defaults to Ti.UI.TEXT_ALIGNMENT_LEFT. We were just missing the ability to set the text. *Example:* !SwitchTitleAndroid.png|thumbnail!

Attachments

FileDateSize
SwitchTitleAndroid.png2021-02-25T08:22:25.000+0000423416
SwitchTitleTest.js2021-02-25T08:19:32.000+0000545

Comments

  1. Satyam Sekhri 2021-03-01

    FR Passed
  2. Christopher Williams 2021-03-05

    merged to master and 10_0_X for 10.0.0 release target.
  3. Joshua Quick 2021-06-09

    This change didn't get back-ported and is missing in the 10_0_X branch. We'll have to back-port the following commit. https://github.com/appcelerator/titanium_mobile/pull/12353/commits/841c55ad5861b45e40a7f1f03bbdd1740ce297ff
  4. Joshua Quick 2021-06-09

    PR (10_0_X): https://github.com/appcelerator/titanium_mobile/pull/12876

JSON Source