Is it possible somehow with Titanium to have a scrollview that has its content offset by say 200px from the top, so that you can see another view beneath, this "bottom" view should be clickable. The effect is seen on Path's user view and on Authentic Jobs iPhone app as seen here: http://cl.ly/EOFG.
I have tried adding a transparent view to the top of a scrollview with touch enabled false, but whilst that allows the click through, only as far as the scrollview. I have tried the same on the scrollview itself, but of course it leaves the scrollview unmovable.
I am working only for iOS and 1.8.1 of the SDK.
2 Answers
You can do this by just adding click event on scrollable view. it will listen background click.
Set "win" layout property to "vertical" or use "zIndex" property on map and search bar.
The thing here is that components overlap when "absolute" layout is used. Component that are added later will be above components that are added before (if they are positioned as you positioned them). Because they overlap, this above component will receive all events and they will not be propagated to below components because they are not in parent-child relationship (they are brothers, so to say :D )
Schematically:
parent
child1
child2
"child2" will overlap "child1" (by using "transparent" background, you made that invisible :) ) and will capture all events. All event will be propagated to "parent" and not to "child1" (because that's how things works :) ).
The solution is to position them vertically (so they can't overlap) or to use "zIndex" so that "child1" is positioned above "child2".
Your Answer
Think you can help? Login to answer this question!