Hi, I'm trying to add a view to a scrollView, but I need it to have a fixed position, is this possible? or if not, what would be the best way to accomplish it?
The problem is that It's a custom built table-view, and each of the rows needs to zIndex above the 'overlay' view when it is clicked. So basically all other rows have a black overlay when the active row is clicked.
The overlay view has to be within the scrollview so when the overlay zIndex is 2, a row is set to 3 and it appears above whilst all other rows are set to 1 and appear below. If I put the overlay outside of the scrollView the rows never appear above it, only the scrollView as a whole.
So the overlay has to be within the scrollView, but when it is, it scrolls with content. Is there a way to fix a view within a scrollview to the top/left? similar to position fixed in CSS.
This also has to be done with an overlay view even though I know how much simpler changing the opacity of the rows would be.
Cheeers!
Your Answer
Think you can help? Login to answer this question!