Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16838] Android: Add searchAsChild to ListView to support Search View in Action Bar

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2014-11-05T03:04:51.000+0000
Affected Version/sRelease 3.2.2
Fix Version/sRelease 3.4.2, Release 3.5.0, Release 4.0.0
ComponentsAndroid
Labelsactionbar, android, listview, module_listview, qe-manualtest, qe-testadded, searchview
ReporterMark Mokryn
AssigneeAshraf Abu
Created2014-04-10T05:29:21.000+0000
Updated2015-07-13T05:34:27.000+0000

Description

We can use a the SearchView in the ActionBar with a TableView, but not ListView if we can't set searchAsChild to false in ListView. Please add this property to ListView.

Attachments

FileDateSize
app_listview_w_actionbar_search.js2014-11-05T02:55:14.000+00001140
app_listview_w_child_search.js2014-11-05T02:55:14.000+0000719

Comments

  1. Ritu Agrawal 2014-04-10

    Moving this feature request to engineering for further evaluation and prioritization. Table View exposes searchAsChild property on Android that allows Search View to be displayed in the Action Bar and a similar property is being requested on ListView.
  2. Bert Grantges 2014-08-13

    +1 on this. We noticed the same thing onsite with a customer.
  3. Marten Nelson 2014-08-23

    This is a major issue when creating native looking android app using listview.
  4. Ashraf Abu 2014-11-05

    Changes done by TIMOB-17480 has allowed for ListView to support Search View in Action Bar.
  5. Ashraf Abu 2014-11-05

    Attached sample app.js files. Please rename them to app.js: [^app_listview_w_actionbar_search.js] This file shows using the Action Bar for search with ListView. [^app_listview_w_child_search.js] This file shows the search in child for ListView. To test the feature out, please compile the Titanium Mobile SDK from changes https://github.com/appcelerator/titanium_mobile/pull/6048 onwards which was done by TIMOB-17480.
  6. Visalakshi Chidambaram 2014-11-26

    Test environment: Appc-Studio: 3.4.1.201410281743 Titanium SDK: 3.5.0.v20141125154115 Titanium CLI: 3.4.1 GA Alloy : 1.5.1 GA Device: Samsung Galaxy Tab 3 (4.4.2)
  7. Dharaneeswaran 2015-07-09

    Still not working....search icon appears in both as a childview and in actionbar..only childview works and when i click actionbar icon nothing happens....i want childview to be hidden and actionbar icon to be active..please help me...
  8. Ashraf Abu 2015-07-10

    Hi [~dharaneem], could you provide a sample app to show what you are referring to? A classic app in App.js would be helpful.
  9. Bert Grantges 2015-07-10

    I have this working in the latest update of the corporate directory sample app however the implementation for ListView is a bit different. You add the SearchView to the Menu tag https://github.com/appcelerator-se/corporate-directory/blob/master/app/views/directory.xml#L18 You can then update the searchText on the list view with the onChange event handler of the SearchView https://github.com/appcelerator-se/corporate-directory/blob/master/app/controllers/directory.js#L333 This provides the proper representation and functionality your looking for
  10. Dharaneeswaran 2015-07-13

JSON Source