Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25985

TiAPI: Disable accessibility features on Ti.UI.Button by using AttributedString

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 7.5.0
    • Component/s: Android, iOS
    • Labels:

      Description

      In my apps i use font-icons for:

      • title of buttons
      • text of label

      Example:

      var IconicFont = require('IconicFont');
      var Icons = new IconicFont({
      	font: 'listIcons'
      });
      var btn = Ti.UI.createButton({
      	height : 50,
              width : 50,
      	color: 'white',
      	font: {
      		fontSize: 24,
      		fontFamily: Icons.fontfamily
      	},
      	title: Icons.icon("add"),
      	textAlign: Ti.UI.TEXT_ALIGNMENT_CENTER,
      	verticalAlign: Ti.UI.TEXT_VERTICAL_ALIGNMENT_CENTER,
      });
      

      If the user active this option Settings / General / Accessibility / Button Shapes , the result is the attached image, an underline on every buttons. I know this is normal, but i would like to know if it was possible to disable this effect.

      I tried to active this option accessibilityHidden, but without result.
      I also thought about using the attributeString (with the param Titanium.UI.ATTRIBUTE_UNDERLINE_STYLE_NONE), but it's only for Label, TextArea or TextField.

      Info link1: https://stackoverflow.com/questions/23246543/remove-underline-on-uibutton-in-ios-7
      Info link2: https://developer.apple.com/documentation/uikit/accessibility/uiaccessibility

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              nicolomonili nicolomonili
              Reviewer:
              Vijay Singh
              Tester:
              Samir Mohammed
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Source Code