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

Android: Accessibility: SearchBar: Setting 'accessibilityHidden: true' disables searchbar to gain focus by clicking over it.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Invalid
    • Affects Version/s: Release 3.0.0
    • Component/s: Android
    • Environment:

      Environment used for verification -
      Titanium SDK:3.0.0.v20121120110430
      Titanium  Studio:3.0.0.201211131839
      Device : Nexus 7(4.1)
      Xcode : 4.5
      Machine OS : MAC 10.8

      Description

      This is a regression. This issue was not occuring in 2.1.4. Though accessibility feature is not working in 2.1.4.

      The app contains 4 search bar. Upper 3 search bars could be focused by clicking over them. The lower most search bar do not gains focus when clicked. It could be focused when navigation is done with keyboard(by clicking 'next').

      Steps to reproduce:
      1. Use the app below

      var win = Ti.UI.createWindow();
      		var search1 = Titanium.UI.createSearchBar({
      		    barColor:'#000', 
      		    showCancel:true,
      		    height:43,
      		    top:10,
      		});
      		var search2 = Titanium.UI.createSearchBar({
      		    barColor:'#000', 
      		    showCancel:true,
      		    height:43,
      		    top:100,
      		    accessibilityLabel: "Search bar2 label.",
      			accessibilityValue: "Search bar2 value.",
      			accessibilityHint: "Search bar2 hint"
      		});
      		var search3 = Titanium.UI.createSearchBar({
      		    barColor:'#000', 
      		    showCancel:true,
      		    height:43,
      		    top:200,
      		    accessibilityHint: "Search bar3 hint",
      		    accessibilityLabel: "Search bar3 label.",
      			accessibilityValue: "Search bar3 value."
      		});
      		var search4 = Titanium.UI.createSearchBar({
      		    barColor:'#000', 
      		    showCancel:true,
      		    height:43,
      		    top:300,
      		    accessibilityHidden: true,
      		    accessibilityLabel: "Search bar4 label.",
      			accessibilityValue: "Search bar4 value.",
      			accessibilityHint: "Search bar4 hint"
      		});
      		
      	win.add(search1);
      	win.add(search2);
      	win.add(search3);
      	win.add(search4);
      	win.open();
      

      2. Run the app and click the fourth(lower most) search bar

      Expected result:
      2. The clicked search bar should gain focus.

      Actual result:
      2. The clicked search bar do not gains focus.

        Attachments

          Activity

            People

            • Assignee:
              krowley Karl Rowley
              Reporter:
              sbhadauria Shyam Bhadauria
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15003
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration