GitHub Issue | n/a |
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-11-05T03:04:51.000+0000 |
Affected Version/s | Release 3.2.2 |
Fix Version/s | Release 3.4.2, Release 3.5.0, Release 4.0.0 |
Components | Android |
Labels | actionbar, android, listview, module_listview, qe-manualtest, qe-testadded, searchview |
Reporter | Mark Mokryn |
Assignee | Ashraf Abu |
Created | 2014-04-10T05:29:21.000+0000 |
Updated | 2015-07-13T05:34:27.000+0000 |
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.
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.
+1 on this. We noticed the same thing onsite with a customer.
This is a major issue when creating native looking android app using listview.
Changes done by TIMOB-17480 has allowed for ListView to support Search View in Action Bar.
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.
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)
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...
Hi [~dharaneem], could you provide a sample app to show what you are referring to? A classic app in App.js would be helpful.
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