Open FokkeZB opened 10 years ago
+1 for this
If this was available, I was not caught with this one: https://github.com/raymondkam/Ti.SwipeRefreshLayout/issues/5
Is there is another solution to add the listview in a module in xml as above fokke mentioned..? beacuse i need to add the listview in xml.
You can always do it via a widget:
index.js
<Widget src="myWidget">
<ListView />
</Widget>
widget.js
var swipeRefreshModule = require('com.rkam.swiperefreshlayout');
var swipeRefresh = swipeRefreshModule.createSwipeRefresh({
view: arguments[0].children[0]
});
$.setTopLevelView(swipeRefresh);
(coded it here, haven't checked)
You can check out 0.3 version in my repo: https://github.com/iskugor/Ti.SwipeRefreshLayout
I'd like to be able to set the view via a
.add()
method:This will allow me to use the module in Alloy XML: