GitHub Issue | n/a |
Type | Improvement |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-02-28T22:41:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2014 Sprint 05, 2014 Sprint 05 API, Release 3.3.0 |
Components | iOS |
Labels | listview, module_listview, qe-closed-3.3.0, qe-testadded |
Reporter | levani |
Assignee | Vishal Duggal |
Created | 2014-02-21T19:31:36.000+0000 |
Updated | 2014-04-25T09:06:12.000+0000 |
I'm using PullView to implement "Release to refresh" functionality, but the problem is that I can't change the background color above the PullView itself. When I scroll down more than the height of PullView some default grey background appears that I would like to change. See attached image for example.
I'm also attaching a very simple app with listview only. The background color of pullview if pink, everything that appears above that pullview when you scroll down is always grey!
P.S. If this area isn't a background and it has it's own name please change the title accordingly.
Sample code showing use of pullBackgroundColor on Ti.UI.View and noresults event in ListView
Pull pending against master https://github.com/appcelerator/titanium_mobile/pull/5391
Thanks for the update, As i am using the latest CI build, i was able to incorporate this functionality into my app. However the documentation is a little weird. The "pullBackgroundColor" is listed as a property of the listView itself. Trying to set it there doesn't work, as it must set on the view contained by the pullView property. Having it as part of of listView and View make sense in this circumstance. But perhaps the functionality should also be part of the listView rather then view. Both?
@[~paul h] pullBackgroundColor is a property of Ti.UI.View and so gets inherited by all UI components extending Ti.UI.View (ListView, TableView, Window, TabGroup etc). In theory you can assign a TableView or ListView as the pullView for another TableView/ListView (though I suspect it would not work as expected).
Verified fix with below environment: Appc Studio: 3.3.0.201404211130 SDK build: 3.3.0.v20140423155715 acs: 1.0.14 npm: 1.3.2 alloy: 1.4.0-dev CLI: titanium-3.3.0-dev titanium-code-processor:1.1.1-beta1 Xcode: 5.1.1 Osx: Mavericks(10.9.2) Device: iPhone 5C(7.1) Able to change the color of area above the pullview through pullBackgroundColor property as expected. Hence Closing the issue.