Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1177] Implicitly set ns attribute for SearchView to Ti.UI.Android

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusResolved
ResolutionFixed
Resolution Date2014-10-30T04:53:28.000+0000
Affected Version/sAlloy 1.6.0
Fix Version/sAlloy 1.7.0
ComponentsXML
Labelsn/a
ReporterBenjamin Hatfield
AssigneeTim Poulsen
Created2014-10-21T22:02:28.000+0000
Updated2014-10-30T04:53:28.000+0000

Description

When declaring a SearchView element in XML markup, Alloy should assign it the 'Ti.UI.Android' namespace. Alloy is currently doing this for a lot of iOS-specific components. These two items should be equivalent.
<SearchView ns="Titanium.UI.Android"/>
<SearchView/>

Comments

  1. Tim Poulsen 2014-10-29

    PR https://github.com/appcelerator/alloy/pull/617 Functional test: Included in the PR is test/apps/testing/ALOY\-1177. It contains a TableView with a SearchView, the tag for which has no attributes (<SearchView/>). 1. Run it for Android and confirm that the SearchView appears and is functional. 2. Run it for iOS; you should get a WARN message in the log output stating that the tag is for Android only. But, the app should still build and run just without the search view component. 3. Edit the index.xml file to use either of the alternate commented-out tags and build for Android or iOS. The app should run as previously described. Net result [~bhatfield] is that both ns="Ti.UI.Android" and platform="android" are optional now.
  2. Feon Sua Xin Miao 2014-10-30

    PR merged.

JSON Source